summaryrefslogtreecommitdiff
path: root/tools/bugpoint/CrashDebugger.cpp
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-07-29 08:55:30 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-07-29 08:55:30 +0000
commitbcbd9c43a17652c62875ffb9a008f549d0ec5714 (patch)
tree37e9ea734569edb546976d2afee15f58e8250caa /tools/bugpoint/CrashDebugger.cpp
parente2afdedec5f876b88384e21a3e18f48444989346 (diff)
downloadllvm-bcbd9c43a17652c62875ffb9a008f549d0ec5714.tar.gz
llvm-bcbd9c43a17652c62875ffb9a008f549d0ec5714.tar.bz2
llvm-bcbd9c43a17652c62875ffb9a008f549d0ec5714.tar.xz
Improve bugpoint output a bit by outputting the actual instructions instead of
just it's name, which is often empty. Also remove a newline from the output that wasn't really needed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--tools/bugpoint/CrashDebugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/bugpoint/CrashDebugger.cpp b/tools/bugpoint/CrashDebugger.cpp
index 7dcbfe3c4a..e5ae8b58dc 100644
--- a/tools/bugpoint/CrashDebugger.cpp
+++ b/tools/bugpoint/CrashDebugger.cpp
@@ -469,7 +469,7 @@ static bool DebugACrash(BugDriver &BD, bool (*TestFn)(BugDriver &, Module *)) {
} else {
if (BugpointIsInterrupted) goto ExitLoops;
- std::cout << "Checking instruction '" << I->getName() << "': ";
+ std::cout << "Checking instruction: " << *I;
Module *M = BD.deleteInstructionFromProgram(I, Simplification);
// Find out if the pass still crashes on this pass...
@@ -539,7 +539,6 @@ bool BugDriver::debugOptimizerCrash(const std::string &ID) {
static bool TestForCodeGenCrash(BugDriver &BD, Module *M) {
try {
- std::cerr << '\n';
BD.compileProgram(M);
std::cerr << '\n';
return false;