summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-04-29 22:57:33 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-04-29 22:57:33 -0400
commitba6f838d2471c57fc3d8fc6d325766ff95ce108a (patch)
treedeb1d028b85d1a68b06c06eec4700367cfe793a3 /staptree.h
parent8c392b1a21fbe01e785c20df6bd7a254f8e517d0 (diff)
downloadsystemtap-steved-ba6f838d2471c57fc3d8fc6d325766ff95ce108a.tar.gz
systemtap-steved-ba6f838d2471c57fc3d8fc6d325766ff95ce108a.tar.xz
systemtap-steved-ba6f838d2471c57fc3d8fc6d325766ff95ce108a.zip
PR6466: broad side-effect free statement elision
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/staptree.h b/staptree.h
index 136472fd..9adbc822 100644
--- a/staptree.h
+++ b/staptree.h
@@ -470,6 +470,8 @@ struct block: public statement
std::vector<statement*> statements;
void print (std::ostream& o) const;
void visit (visitor* u);
+ block () {}
+ block (statement* car, statement* cdr);
};
@@ -605,7 +607,7 @@ std::ostream& operator << (std::ostream& o, const probe_point& k);
struct probe
{
std::vector<probe_point*> locations;
- block* body;
+ statement* body;
const token* tok;
std::vector<vardecl*> locals;
std::vector<vardecl*> unused_locals;