diff options
author | Philip Reames <listmail@philipreames.com> | 2016-06-29 03:01:13 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2016-06-29 03:01:13 +0000 |
commit | e5b56020081f6ca7e59cbde31d23cab8a7398acb (patch) | |
tree | a58aa0a36047400022c86d844ab71e99fc63402d /llvm/tools/bugpoint/BugDriver.h | |
parent | 8e1131dc46f6f79f9994b0ea89f791094783910e (diff) | |
download | bcm5719-llvm-e5b56020081f6ca7e59cbde31d23cab8a7398acb.tar.gz bcm5719-llvm-e5b56020081f6ca7e59cbde31d23cab8a7398acb.zip |
[bugpoint] Unwrap one level of wrapper functions [NFC]
llvm-svn: 274092
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.h | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h index 719350f8b33..c82540d3b8f 100644 --- a/llvm/tools/bugpoint/BugDriver.h +++ b/llvm/tools/bugpoint/BugDriver.h @@ -130,12 +130,6 @@ public: /// bool isExecutingJIT(); - /// runPasses - Run all of the passes in the "PassesToRun" list, discard the - /// output, and return true if any of the passes crashed. - bool runPasses(Module *M) const { - return runPasses(M, PassesToRun); - } - Module *getProgram() const { return Program; } /// swapProgramIn - Set the current module to the specified module, returning @@ -265,6 +259,16 @@ public: std::string &OutputFilename, bool DeleteOutput = false, bool Quiet = false, unsigned NumExtraArgs = 0, const char * const *ExtraArgs = nullptr) const; + + /// runPasses - Just like the method above, but this just returns true or + /// false indicating whether or not the optimizer crashed on the specified + /// input (true = crashed). Does not produce any output. + /// + bool runPasses(Module *M, + const std::vector<std::string> &PassesToRun) const { + std::string Filename; + return runPasses(M, PassesToRun, Filename, true); + } /// runManyPasses - Take the specified pass list and create different /// combinations of passes to compile the program with. Compile the program with @@ -284,17 +288,6 @@ public: const Module *M) const; private: - /// runPasses - Just like the method above, but this just returns true or - /// false indicating whether or not the optimizer crashed on the specified - /// input (true = crashed). - /// - bool runPasses(Module *M, - const std::vector<std::string> &PassesToRun, - bool DeleteOutput = true) const { - std::string Filename; - return runPasses(M, PassesToRun, Filename, DeleteOutput); - } - /// initializeExecutionEnvironment - This method is used to set up the /// environment for executing LLVM programs. /// |