From a44a0785c9869062b431573678237c5a646a71a7 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 25 May 2006 02:03:01 +0000 Subject: 2006-05-24 Frank Ch. Eigler 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. --- translate.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'translate.cxx') 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); } -- cgit