summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'staptree.cxx')
-rw-r--r--staptree.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx
index 39f5580e..02a6c8dc 100644
--- a/staptree.cxx
+++ b/staptree.cxx
@@ -801,6 +801,14 @@ void block::print (ostream& o) const
o << "}";
}
+block::block (statement* car, statement* cdr)
+{
+ statements.push_back(car);
+ statements.push_back(cdr);
+ this->tok = car->tok;
+}
+
+
void for_loop::print (ostream& o) const
{