OSDN Git Service

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)
commitd8090aef787ac166223d384b10eda7b2cb68581f
tree48a8f0159c14ac11add3d3d7083e6891d71afa5a
parenta68463ecadd8fe921c42cadfefc7e8f798d019fe
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280720 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/BugDriver.cpp
tools/bugpoint/BugDriver.h
tools/bugpoint/CrashDebugger.cpp
tools/bugpoint/ExecutionDriver.cpp
tools/bugpoint/FindBugs.cpp
tools/bugpoint/ListReducer.h
tools/bugpoint/Miscompilation.cpp
tools/bugpoint/ToolRunner.cpp
tools/bugpoint/ToolRunner.h
tools/bugpoint/bugpoint.cpp