mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
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
This commit is contained in:
@@ -54,7 +54,7 @@ int main(int argc, char **argv) {
|
||||
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. "
|
||||
|
||||
Reference in New Issue
Block a user