summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorjistone <jistone>2005-12-21 22:20:53 +0000
committerjistone <jistone>2005-12-21 22:20:53 +0000
commit40687c55ba0864cd567ecf8cc911d8f871855a49 (patch)
tree093f68d468ccc66d4b35b482580d6243359f553f /translate.cxx
parent112b531a1b74547e8575f7a687d617869e86c766 (diff)
downloadsystemtap-steved-40687c55ba0864cd567ecf8cc911d8f871855a49.tar.gz
systemtap-steved-40687c55ba0864cd567ecf8cc911d8f871855a49.tar.xz
systemtap-steved-40687c55ba0864cd567ecf8cc911d8f871855a49.zip
2005-12-21 Josh Stone <joshua.i.stone@intel.com>
* translate.cxx (itervar::next): emit different code for pmaps
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx
index 98c6813b..bda28e8b 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -721,7 +721,10 @@ public:
if (mv.type() != referent_ty)
throw semantic_error("inconsistent iterator type in itervar::next()");
- return "_stp_map_iter (" + mv.qname() + ", " + qname() + ")";
+ if (mv.is_parallel())
+ return "_stp_map_iter (" + mv.fetch_existing_aggregate() + ", " + qname() + ")";
+ else
+ return "_stp_map_iter (" + mv.qname() + ", " + qname() + ")";
}
string qname () const