summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorfche <fche>2005-08-11 16:53:45 +0000
committerfche <fche>2005-08-11 16:53:45 +0000
commit0d155048397c88db09a25989450568e25af8f44c (patch)
tree3fe59a1997c04f4e46839d9b687520fd6419fc82 /translate.cxx
parent59ff27737b1c61f995ec5975f947d9a51c5667ad (diff)
downloadsystemtap-steved-0d155048397c88db09a25989450568e25af8f44c.tar.gz
systemtap-steved-0d155048397c88db09a25989450568e25af8f44c.tar.xz
systemtap-steved-0d155048397c88db09a25989450568e25af8f44c.zip
2005-08-11 Frank Ch. Eigler <fche@elastic.org>
* translate.cxx (emit_function): Add an extra { } around the function body visitation. * tapset/timestamp_functions.stp: New file. * tapset/builtin_conversions.stp: Aggregated from [hex]string. * tapset/builtin_logging.stp: Aggregated from log/warn/printk.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/translate.cxx b/translate.cxx
index 8806e502..b2a44563 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -771,7 +771,10 @@ c_unparser::emit_function (functiondecl* v)
o->newline() << retvalue.init();
}
+ o->newline(1) << "{"; // in case body is embeddedcode with decls
v->body->visit (this);
+ o->newline(-1) << "}";
+
this->current_function = 0;
o->newline(-1) << "out:";