summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit3d5d6f90e0fc83e543be1da4bfbc39210152d9aa (patch)
treef7700dfd6415034b1bd0ce415c1815b328eecef1 /llvm/tools/bugpoint/CrashDebugger.cpp
parent0446862796f831459a93a55a817c80ec4641c6e2 (diff)
downloadbcm5719-llvm-3d5d6f90e0fc83e543be1da4bfbc39210152d9aa.tar.gz
bcm5719-llvm-3d5d6f90e0fc83e543be1da4bfbc39210152d9aa.zip
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. llvm-svn: 54158
Diffstat (limited to 'llvm/tools/bugpoint/CrashDebugger.cpp')
-rw-r--r--llvm/tools/bugpoint/CrashDebugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp
index 7dcbfe3c4a6..e5ae8b58dc5 100644
--- a/llvm/tools/bugpoint/CrashDebugger.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud