summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-02-19 17:44:44 -0800
committerJosh Stone <jistone@redhat.com>2010-02-23 16:20:35 -0800
commitf946b10fbd72dd760f04ad9475f2ba3ccb56666f (patch)
treefccc6a4d31e04f741cf0a8ebe6f44c36943b9dae /staptree.h
parentd945a07eecee9851173365459d196bcd22c3e636 (diff)
downloadsystemtap-steved-f946b10fbd72dd760f04ad9475f2ba3ccb56666f.tar.gz
systemtap-steved-f946b10fbd72dd760f04ad9475f2ba3ccb56666f.tar.xz
systemtap-steved-f946b10fbd72dd760f04ad9475f2ba3ccb56666f.zip
Simplify null_statement construction
It only needs a token*, so build that into the constructor.
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/staptree.h b/staptree.h
index a654a7b4..bc5f0bfc 100644
--- a/staptree.h
+++ b/staptree.h
@@ -492,6 +492,7 @@ struct statement
virtual void visit (visitor* u) = 0;
const token* tok;
statement ();
+ statement (const token* tok);
virtual ~statement ();
};
@@ -547,6 +548,7 @@ struct null_statement: public statement
{
void print (std::ostream& o) const;
void visit (visitor* u);
+ null_statement (const token* tok);
};