summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorgraydon <graydon>2005-07-27 18:08:45 +0000
committergraydon <graydon>2005-07-27 18:08:45 +0000
commit8a43522c150e94623ee90857c62d3fb7f5b58521 (patch)
tree51353794991fe3df73166a4716fc7519644e0eb5 /elaborate.cxx
parent21ba501044c5436c80cd2f4f0abc8aa6bb135bcb (diff)
downloadsystemtap-steved-8a43522c150e94623ee90857c62d3fb7f5b58521.tar.gz
systemtap-steved-8a43522c150e94623ee90857c62d3fb7f5b58521.tar.xz
systemtap-steved-8a43522c150e94623ee90857c62d3fb7f5b58521.zip
2005-07-26 Graydon Hoare <graydon@redhat.com>
* elaborate.cxx: Revert builtin-function code. * translate.cxx: Likewise. * tapsets.{h,cxx}: Likewise.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx30
1 files changed, 12 insertions, 18 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index e7d9f967..f1f0cede 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -591,12 +591,9 @@ semantic_pass_symbols (systemtap_session& s)
try
{
- if (fd->body)
- {
- sym.current_function = fd;
- sym.current_probe = 0;
- fd->body->visit (& sym);
- }
+ sym.current_function = fd;
+ sym.current_probe = 0;
+ fd->body->visit (& sym);
}
catch (const semantic_error& e)
{
@@ -945,18 +942,15 @@ semantic_pass_types (systemtap_session& s)
for (unsigned j=0; j<s.functions.size(); j++)
{
functiondecl* fn = s.functions[j];
- if (fn->body)
- {
- ti.current_function = fn;
- ti.t = pe_unknown;
- fn->body->visit (& ti);
- // NB: we don't have to assert a known type for
- // functions here, to permit a "void" function.
- // The translator phase will omit the "retvalue".
- //
- // if (fn->type == pe_unknown)
- // ti.unresolved (fn->tok);
- }
+ ti.current_function = fn;
+ ti.t = pe_unknown;
+ fn->body->visit (& ti);
+ // NB: we don't have to assert a known type for
+ // functions here, to permit a "void" function.
+ // The translator phase will omit the "retvalue".
+ //
+ // if (fn->type == pe_unknown)
+ // ti.unresolved (fn->tok);
}
for (unsigned j=0; j<s.probes.size(); j++)