commit | 5e173d479564c816ea2db5a8b8212df7e2e2d759 | [log] [tgz] |
---|---|---|
author | Sean Callanan <scallanan@apple.com> | Thu Jun 24 00:47:05 2010 +0000 |
committer | Sean Callanan <scallanan@apple.com> | Thu Jun 24 00:47:05 2010 +0000 |
tree | 5f881819636e35001be7d99169bb3b439e7301b2 | |
parent | 46b6249780aafc75d152a926b961fe7a162e8c8a [diff] [blame] |
Improved printing of LLVM IR. We now print complete instructions rather than simply their opcodes. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@106708 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Expression/ClangExpression.cpp b/source/Expression/ClangExpression.cpp index b584635..b249584 100644 --- a/source/Expression/ClangExpression.cpp +++ b/source/Expression/ClangExpression.cpp
@@ -498,11 +498,16 @@ { llvm::Instruction &inst = *ii; + std::string s; + llvm::raw_string_ostream os(s); + + inst.print(os); + if (log) - log->Printf(" %s", inst.getOpcodeName()); + log->Printf(" %s", s.c_str()); } } - } + } return 0; }