summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-reduce/TestRunner.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-reduce/TestRunner.h')
-rw-r--r--llvm/tools/llvm-reduce/TestRunner.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/tools/llvm-reduce/TestRunner.h b/llvm/tools/llvm-reduce/TestRunner.h
index 4d5b5bb0375..35235e2adeb 100644
--- a/llvm/tools/llvm-reduce/TestRunner.h
+++ b/llvm/tools/llvm-reduce/TestRunner.h
@@ -24,29 +24,22 @@ namespace llvm {
// respective filename.
class TestRunner {
public:
- TestRunner(StringRef TestName, std::vector<std::string> TestArgs,
- StringRef ReducedFilepath);
+ TestRunner(StringRef TestName, std::vector<std::string> TestArgs);
/// Runs the interesting-ness test for the specified file
/// @returns 0 if test was successful, 1 if otherwise
int run(StringRef Filename);
- /// Filename to the most reduced testcase
- StringRef getReducedFilepath() const { return ReducedFilepath; }
/// Directory where tmp files are created
StringRef getTmpDir() const { return TmpDirectory; }
/// Returns the most reduced version of the original testcase
Module *getProgram() const { return Program.get(); }
- void setReducedFilepath(SmallString<128> F) {
- ReducedFilepath = std::move(F);
- }
void setProgram(std::unique_ptr<Module> P) { Program = std::move(P); }
private:
SmallString<128> TestName;
std::vector<std::string> TestArgs;
- SmallString<128> ReducedFilepath;
SmallString<128> TmpDirectory;
std::unique_ptr<Module> Program;
};
OpenPOWER on IntegriCloud