[llvm-commits] CVS: llvm/tools/bugpoint/bugpoint.cpp BugDriver.cpp

Alkis Evlogimenos alkis at cs.uiuc.edu
Thu Feb 19 01:45:45 PST 2004


Changes in directory llvm/tools/bugpoint:

bugpoint.cpp updated: 1.13 -> 1.14
BugDriver.cpp updated: 1.26 -> 1.27

---
Log message:

Make ToolExecutionError inherit std::exception and implement its
interface: getMessage() is gone, use what() instead.


---
Diffs of the changes:  (+3 -3)

Index: llvm/tools/bugpoint/bugpoint.cpp
diff -u llvm/tools/bugpoint/bugpoint.cpp:1.13 llvm/tools/bugpoint/bugpoint.cpp:1.14
--- llvm/tools/bugpoint/bugpoint.cpp:1.13	Wed Feb 18 14:22:11 2004
+++ llvm/tools/bugpoint/bugpoint.cpp	Thu Feb 19 01:39:26 2004
@@ -54,7 +54,7 @@
   try {
     return D.run();
   } catch (ToolExecutionError &TEE) {
-    std::cerr << "Tool execution error: " << TEE.getMessage() << "\n";
+    std::cerr << "Tool execution error: " << TEE.what() << "\n";
     return 1;
   } catch (...) {
     std::cerr << "Whoops, an exception leaked out of bugpoint.  "


Index: llvm/tools/bugpoint/BugDriver.cpp
diff -u llvm/tools/bugpoint/BugDriver.cpp:1.26 llvm/tools/bugpoint/BugDriver.cpp:1.27
--- llvm/tools/bugpoint/BugDriver.cpp:1.26	Wed Feb 18 15:24:48 2004
+++ llvm/tools/bugpoint/BugDriver.cpp	Thu Feb 19 01:39:26 2004
@@ -159,7 +159,7 @@
       CreatedOutput = true;
       std::cout << "Reference output is: " << ReferenceOutputFile << "\n";
     } catch (ToolExecutionError &TEE) {
-      std::cerr << TEE.getMessage();
+      std::cerr << TEE.what();
       if (Interpreter != cbe) {
         std::cerr << "*** There is a bug running the C backend.  Either debug"
                   << " it (use the -run-cbe bugpoint option), or fix the error"
@@ -183,7 +183,7 @@
       return debugMiscompilation();
     }
   } catch (ToolExecutionError &TEE) {
-    std::cerr << TEE.getMessage();
+    std::cerr << TEE.what();
     return debugCodeGeneratorCrash();
   }
 





More information about the llvm-commits mailing list