From 1d29a6d6c7a7f6203065c003d3d2d002870e38a1 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Thu, 19 Feb 2004 07:39:26 +0000 Subject: Make ToolExecutionError inherit std::exception and implement its interface: getMessage() is gone, use what() instead. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11621 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/BugDriver.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/bugpoint/BugDriver.cpp') diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp index 4359622777..d3a57f4afe 100644 --- a/tools/bugpoint/BugDriver.cpp +++ b/tools/bugpoint/BugDriver.cpp @@ -159,7 +159,7 @@ bool BugDriver::run() { 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 @@ bool BugDriver::run() { return debugMiscompilation(); } } catch (ToolExecutionError &TEE) { - std::cerr << TEE.getMessage(); + std::cerr << TEE.what(); return debugCodeGeneratorCrash(); } -- cgit v1.2.3