diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:04:13 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-09-06 04:04:13 +0000 |
commit | 46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3 (patch) | |
tree | b05f5a80e5937bf80d7ebf319fb9256620e12ba1 /llvm/tools/bugpoint/BugDriver.h | |
parent | bfa25bd1aca993e36222aec4b400bdeff37355ec (diff) | |
download | bcm5719-llvm-46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3.tar.gz bcm5719-llvm-46b1a9a70c171c44eb2fe0948f9b6f1be2387aa3.zip |
bugpoint: Stop threading errors through APIs that never fail
This simplifies ListReducer and most of its subclasses by removing the
std::string &Error that was threaded through all of them but almost
never used. If we end up needing error handling in more places here we
can reinstate it using llvm::Error instead of these unwieldy strings.
The 2 cases (out of 12) that actually can hit the error cases are a
little bit awkward now, but those will clean up as I refactor this API
further.
llvm-svn: 280690
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h index 7ae2d5c2f99..7e03aa6512c 100644 --- a/llvm/tools/bugpoint/BugDriver.h +++ b/llvm/tools/bugpoint/BugDriver.h @@ -85,7 +85,7 @@ public: /// variables are set up from command line arguments. The \p as_child argument /// indicates whether the driver is to run in parent mode or child mode. /// - bool run(std::string &ErrMsg); + bool run(); /// debugOptimizerCrash - This method is called when some optimizer pass /// crashes on input. It attempts to prune down the testcase to something @@ -96,7 +96,7 @@ public: /// debugCodeGeneratorCrash - This method is called when the code generator /// crashes on an input. It attempts to reduce the input as much as possible /// while still causing the code generator to crash. - bool debugCodeGeneratorCrash(std::string &Error); + bool debugCodeGeneratorCrash(); /// debugMiscompilation - This method is used when the passes selected are not /// crashing, but the generated output is semantically different from the @@ -266,8 +266,7 @@ public: /// If the passes did not compile correctly, output the command required to /// recreate the failure. This returns true if a compiler error is found. /// - bool runManyPasses(const std::vector<std::string> &AllPasses, - std::string &ErrMsg); + bool runManyPasses(const std::vector<std::string> &AllPasses); /// writeProgramToFile - This writes the current "Program" to the named /// bitcode file. If an error occurs, true is returned. |