summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_decl.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_decl.cpp80
1 files changed, 0 insertions, 80 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_decl.cpp b/TAO/TAO_IDL/be/be_visitor_decl.cpp
deleted file mode 100644
index 8539de31d30..00000000000
--- a/TAO/TAO_IDL/be/be_visitor_decl.cpp
+++ /dev/null
@@ -1,80 +0,0 @@
-//
-// $Id$
-//
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO IDL
-//
-// = FILENAME
-// be_visitor_decl.cpp
-//
-// = DESCRIPTION
-// Visitor for the base be_decl node. This serves to maintain the current
-// state (context) of code generation for the derived visitor.
-//
-// = AUTHOR
-// Aniruddha Gokhale
-//
-// ============================================================================
-
-#include "idl.h"
-#include "idl_extern.h"
-#include "be.h"
-
-#include "be_visitor_decl.h"
-
-ACE_RCSID(be, be_visitor_decl, "$Id$")
-
-
-// Root visitor for client header
-be_visitor_decl::be_visitor_decl (be_visitor_context *ctx)
- : ctx_ (ctx)
-{
-}
-
-be_visitor_decl::~be_visitor_decl (void)
-{
- delete this->ctx_;
-}
-
-int
-be_visitor_decl::gen_anonymous_base_type (be_type *bt,
- TAO_CodeGen::CG_STATE cg_state)
-{
- be_typedef *tdef = be_typedef::narrow_from_decl (bt);
-
- if (!tdef)
- {
- be_visitor_context ctx (*this->ctx_);
- ctx.state (cg_state);
-
- // In case our container was typedef'd.
- ctx.tdef (0);
- be_visitor *visitor = tao_cg->make_visitor (&ctx);
-
- if (!visitor)
- {
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_decl::"
- "gen_anonymous_base_type - "
- "bad visitor to anonymous abase type\n"),
- -1);
- }
-
- if (bt->accept (visitor) == -1)
- {
- delete visitor;
- ACE_ERROR_RETURN ((LM_ERROR,
- "(%N:%l) be_visitor_decl::"
- "gen_anonymous_base_type - "
- "anonymous base type codegen failed\n"),
- -1);
- }
-
- delete visitor;
- }
-
- return 0;
-}