summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-07-26 22:40:14 +0000
committerfche <fche>2005-07-26 22:40:14 +0000
commit54dfabe9e604ec06cdb5550f58420c60d0cbdbd9 (patch)
tree2dc021fd5534f57a51235a9598cec6cec9ed2342 /elaborate.cxx
parentf05bc729c752cee5eb11fde9193eea12a21b0d12 (diff)
downloadsystemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.tar.gz
systemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.tar.xz
systemtap-steved-54dfabe9e604ec06cdb5550f58420c60d0cbdbd9.zip
2005-07-26 Frank Ch. Eigler <fche@redhat.com>
Support %{ embedded-c %} * staptree.h (embeddedcode): New statement subtype. Stub support in visitors. * staptree.cxx: Ditto. * parse.cxx: Parse %{ / %}. Accept "_" as identifier leading char. (parse_probe): Simplify calling convention. * elaborate.h: Store embedded code. * elaborate.cxx: Pass it. * translate.cxx: Transcribe it. Return some dropped module init/exit code. * Makefile.am: Add buildok/buildko tests. * Makefile.in: Regenerated. * main.cxx: Return EXIT_SUCCESS/FAILURE even for weird rc. * testsuite/parseok/nine.stp: Test _identifiers. * testsuite/transko/*.stp: Tweak to force -p3 rather than -p2 errors. * testsuite/semok/transko.stp: ... and keep it that way in the future. * testsuite/parse*/*: Some new tests for %{ %}. * testsuite/build*/*: New tests for -p4.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index 8980895f..e7d9f967 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -580,6 +580,9 @@ semantic_pass_symbols (systemtap_session& s)
for (unsigned i=0; i<dome->functions.size(); i++)
s.functions.push_back (dome->functions[i]);
+ for (unsigned i=0; i<dome->embeds.size(); i++)
+ s.embeds.push_back (dome->embeds[i]);
+
// Pass 2: process functions
for (unsigned i=0; i<dome->functions.size(); i++)
@@ -1385,6 +1388,12 @@ typeresolution_info::visit_block (block* e)
void
+typeresolution_info::visit_embeddedcode (embeddedcode* e)
+{
+}
+
+
+void
typeresolution_info::visit_if_statement (if_statement* e)
{
t = pe_long;