summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union.cpp
diff options
context:
space:
mode:
authorgokhale <asgokhale@users.noreply.github.com>1998-03-11 21:11:40 +0000
committergokhale <asgokhale@users.noreply.github.com>1998-03-11 21:11:40 +0000
commit6795d159dd47f8420b36701d6a950a45afa6d249 (patch)
treefe12689f493ab7397c265291ac3b680a5d923bf8 /TAO/TAO_IDL/be/be_visitor_union.cpp
parentabf6f7fdf6d4a10257369d02bad7c4b4a3f271c3 (diff)
downloadATCD-6795d159dd47f8420b36701d6a950a45afa6d249.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union.cpp b/TAO/TAO_IDL/be/be_visitor_union.cpp
index 09cfd704c7c..c3a02473c00 100644
--- a/TAO/TAO_IDL/be/be_visitor_union.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union.cpp
@@ -129,7 +129,8 @@ int be_visitor_union_ch::visit_union (be_union *node)
// still the same
- if (!node->cli_hdr_gen ())
+ if (!node->cli_hdr_gen () && !node->imported ()) // not already generated and
+ // not imported
{
os = this->ctx_->stream ();
@@ -304,7 +305,7 @@ int be_visitor_union_ci::visit_union (be_union *node)
// still the same
- if (!node->cli_inline_gen ())
+ if (!node->cli_inline_gen () && !node->imported ())
{
os = this->ctx_->stream ();
@@ -417,7 +418,7 @@ int be_visitor_union_cs::visit_union (be_union *node)
TAO_OutStream *os; // output stream
be_type *bt; // for discriminant type
- if (!node->cli_stub_gen ())
+ if (!node->cli_stub_gen () && !node->imported ())
{
os = this->ctx_->stream ();