summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
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.cxx
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.cxx')
-rw-r--r--staptree.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 7a335fc3..a31112cb 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -42,6 +42,18 @@ statement::statement ():
}
+statement::statement (const token* tok):
+ tok (tok)
+{
+}
+
+
+null_statement::null_statement (const token* tok):
+ statement(tok)
+{
+}
+
+
statement::~statement ()
{
}