diff options
author | Josh Stone <jistone@redhat.com> | 2009-04-06 16:11:30 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-04-06 16:48:11 -0700 |
commit | 3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023 (patch) | |
tree | f103f40f27ccc9ef67cd9780a7bb307a7d43bb53 /elaborate.cxx | |
parent | b4c34c261909065b97dfccfd6df996897457193c (diff) | |
download | systemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.tar.gz systemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.tar.xz systemtap-steved-3e3bd7b6b9dd2ba282990f39d60e3ad5ecfec023.zip |
PR10026: Read marker/tracepoint args directly
We already stash the context variables for markers and tracepoints into
the locals for the probe body, but then we were using separate functions
to read those locals for each particular probe body.
This patch instead teaches the unparser how to emit the local name
directly for those context variables. The resulting code from the
translator is much simpler now.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r-- | elaborate.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/elaborate.cxx b/elaborate.cxx index 34e6ab16..323261c7 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -3392,6 +3392,9 @@ typeresolution_info::visit_symbol (symbol* e) void typeresolution_info::visit_target_symbol (target_symbol* e) { + if (!e->probe_context_var.empty()) + return; + // This occurs only if a target symbol was not resolved over in // tapset.cxx land, that error was properly suppressed, and the // later unused-expression-elimination pass didn't get rid of it |