summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/argument.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/argument.cpp37
1 files changed, 6 insertions, 31 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
index 0a23dbcaa86..93cc4c0598d 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/argument.cpp
@@ -32,10 +32,9 @@ ACE_RCSID(be_visitor_operation, argument, "$Id$")
// do_static_call/upcall stuff with arguments
// ************************************************************
-be_visitor_operation_argument::
-be_visitor_operation_argument (be_visitor_context
- *ctx)
- : be_visitor_operation (ctx)
+be_visitor_operation_argument::be_visitor_operation_argument (be_visitor_context
+ *ctx)
+ : be_visitor_scope (ctx)
{
}
@@ -48,9 +47,6 @@ be_visitor_operation_argument::post_process (be_decl *bd)
{
TAO_OutStream *os = this->ctx_->stream ();
- // if we are not the last parameter, we insert a comma. This is only
- // applicable for the upcalls or the call to (de)marshal that we use in the
- // interpreted marshaling.
if (!this->last_node (bd))
{
switch (this->ctx_->state ())
@@ -71,8 +67,6 @@ be_visitor_operation_argument::post_process (be_decl *bd)
int
be_visitor_operation_argument::visit_operation (be_operation *node)
{
- TAO_OutStream *os = this->ctx_->stream ();
-
// all we do is hand over code generation to our scope
if (this->visit_scope (node) == -1)
{
@@ -83,28 +77,6 @@ be_visitor_operation_argument::visit_operation (be_operation *node)
-1);
}
- // if we are supporting the alternate mapping, we must pass the
- // CORBA::Environment parameter as the last parameter
- if (!idl_global->exception_support ())
- {
- switch (this->ctx_->state ())
- {
- case TAO_CodeGen::TAO_OPERATION_ARG_UPCALL_SS:
- case TAO_CodeGen::TAO_OPERATION_COLLOCATED_ARG_UPCALL_SS:
- // applicable only to these cases where the actual upcall is made
-
- // last argument is the environment
- if (node->argument_count () > 0)
- // insert a comma only if there were previous parameters
- *os << ",\n";
- os->indent ();
- *os << "ACE_TRY_ENV";
- break;
- default:
- break;
- }
- }
-
return 0;
}
@@ -182,6 +154,9 @@ be_visitor_operation_argument::visit_argument (be_argument *node)
case TAO_CodeGen::TAO_OPERATION_ARG_POST_MARSHAL_SS:
ctx.state (TAO_CodeGen::TAO_ARGUMENT_POST_MARSHAL_SS);
break;
+ case TAO_CodeGen::TAO_OPERATION_ARG_AMI:
+ ctx.state (TAO_CodeGen::TAO_ARGUMENT_AMI);
+ break;
default:
{
ACE_ERROR_RETURN ((LM_ERROR,