about summary refs log tree commit diff homepage
path: root/lib/Expr/Expr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-01 21:02:43 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-01 21:02:43 +0000
commitbe3fdc136766cb4f2c1fa5b785f3ce74e52f5565 (patch)
treeb52035bfbb899e6a4cded817875aaf0431ebcf56 /lib/Expr/Expr.cpp
parent6f0cb81817233f5911b5b350fafd227d5af3963a (diff)
downloadklee-be3fdc136766cb4f2c1fa5b785f3ce74e52f5565.tar.gz
Add Expr::dump
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@77802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r--lib/Expr/Expr.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp
index 3820fd32..b1bf9824 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -290,6 +290,11 @@ void Expr::print(std::ostream &os) const {
   ExprPPrinter::printSingleExpr(os, (Expr*)this);
 }
 
+void Expr::dump() const {
+  this->print(*llvm::cerr.stream());
+  llvm::cerr << std::endl;
+}
+
 /***/
 
 ref<Expr> ConstantExpr::fromMemory(void *address, Width width) {