Improve bugpoint output a bit by outputting the actual instructions instead of
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 29 Jul 2008 08:55:30 +0000 (08:55 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 29 Jul 2008 08:55:30 +0000 (08:55 +0000)
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

tools/bugpoint/CrashDebugger.cpp

index 7dcbfe3c4a68a9a7a8e9e74ebfcd684eaaf46c7f..e5ae8b58dc544508ae79e9d6aebe50e13a0bf2dc 100644 (file)
@@ -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;