summaryrefslogtreecommitdiffstats
path: root/staptree.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-04-30 09:54:57 -0400
committerFrank Ch. Eigler <fche@elastic.org>2008-04-30 09:54:57 -0400
commit49628242c239feb617b838bb5d90488386645bd6 (patch)
treedb3102573ddc2b12457aa4da3dc8b3f2b4c104cf /staptree.cxx
parentb167928be06ff251ff9a6f2f0c528dd3ece527df (diff)
parentba6f838d2471c57fc3d8fc6d325766ff95ce108a (diff)
downloadsystemtap-steved-49628242c239feb617b838bb5d90488386645bd6.tar.gz
systemtap-steved-49628242c239feb617b838bb5d90488386645bd6.tar.xz
systemtap-steved-49628242c239feb617b838bb5d90488386645bd6.zip
Merge branch 'master' into pr6429-comp-unwindsyms
* master: PR6466: broad side-effect free statement elision Made utrace probes more robust. 2008-04-27 William Cohen <wcohen@redhat.com> 2008-04-27 William Cohen <wcohen@redhat.com>
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
{