summaryrefslogtreecommitdiffstats
path: root/translate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'translate.cxx')
-rw-r--r--translate.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/translate.cxx b/translate.cxx
index d9d99507..5336dc66 100644
--- a/translate.cxx
+++ b/translate.cxx
@@ -5212,18 +5212,19 @@ translate_pass (systemtap_session& s)
s.op->newline(-1) << "}";
s.op->assert_0_indent();
+ emit_symbol_data (s);
+
+ s.op->newline() << "MODULE_DESCRIPTION(\"systemtap-generated probe\");";
+ s.op->newline() << "MODULE_LICENSE(\"GPL\");";
+ s.op->assert_0_indent();
+
+ // PR10298: attempt to avoid collisions with symbols
for (unsigned i=0; i<s.globals.size(); i++)
{
s.op->newline();
s.up->emit_global_param (s.globals[i]);
}
s.op->assert_0_indent();
-
- emit_symbol_data (s);
-
- s.op->newline() << "MODULE_DESCRIPTION(\"systemtap-generated probe\");";
- s.op->newline() << "MODULE_LICENSE(\"GPL\");";
- s.op->assert_0_indent();
}
catch (const semantic_error& e)
{