summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
authorfche <fche>2006-05-25 02:03:01 +0000
committerfche <fche>2006-05-25 02:03:01 +0000
commita44a0785c9869062b431573678237c5a646a71a7 (patch)
tree0e8eb511904db36f0bbc826b8990d1d6af4ab0a7 /translate.cxx
parentcfe3fd5015c459688c00741de58713445cb5eba9 (diff)
downloadsystemtap-steved-a44a0785c9869062b431573678237c5a646a71a7.tar.gz
systemtap-steved-a44a0785c9869062b431573678237c5a646a71a7.tar.xz
systemtap-steved-a44a0785c9869062b431573678237c5a646a71a7.zip
2006-05-24 Frank Ch. Eigler <fche@elastic.org>
Pass 4 speedup. * tapsets.cxx (derived_probe::emit_common_header): New function, to emit code formerly inlined by emit_probe_prologue/epilogue. * translate.cxx (emit_common_header): Call it. * elaborate.h: Corresponding changes.
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/translate.cxx b/translate.cxx
index d107423e..30d3bd62 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -796,8 +796,6 @@ translator_output::line ()
void
c_unparser::emit_common_header ()
{
- // XXX: tapsets.cxx should be able to add additional definitions
-
o->newline() << "typedef char string_t[MAXSTRINGLEN];";
o->newline();
o->newline() << "#define STAP_SESSION_STARTING 0";
@@ -909,6 +907,7 @@ c_unparser::emit_common_header ()
o->newline() << "#include \"arith.c\"";
o->newline() << "#endif";
+ derived_probe::emit_common_header (o);
}