bugpoint: Return Errors instead of passing around strings
authorJustin Bogner <mail@justinbogner.com>
Tue, 6 Sep 2016 17:18:22 +0000 (17:18 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 6 Sep 2016 17:18:22 +0000 (17:18 +0000)
commit1c039155009c04f4efc37fd76ad75d1342edfccd
tree9038c8830ec86482c0142418b537d74f36015303
parent18ea094df15dfb8b41d4798bb1cbb14c434fa98d
bugpoint: Return Errors instead of passing around strings

This replaces the threading of `std::string &Error` through all of
these APIs with checked Error returns instead. There are very few
places here that actually emit any errors right now, but threading the
APIs through will allow us to replace a bunch of exit(1)'s that are
scattered through this code with proper error handling.

This is more or less NFC, but does move around where a couple of error
messages are printed out.

llvm-svn: 280720
llvm/tools/bugpoint/BugDriver.cpp
llvm/tools/bugpoint/BugDriver.h
llvm/tools/bugpoint/CrashDebugger.cpp
llvm/tools/bugpoint/ExecutionDriver.cpp
llvm/tools/bugpoint/FindBugs.cpp
llvm/tools/bugpoint/ListReducer.h
llvm/tools/bugpoint/Miscompilation.cpp
llvm/tools/bugpoint/ToolRunner.cpp
llvm/tools/bugpoint/ToolRunner.h
llvm/tools/bugpoint/bugpoint.cpp