diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-04-23 20:31:37 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-04-23 20:31:37 +0000 |
| commit | 68efaa7ad988607ea76f0775a9cd17b2814b7ac7 (patch) | |
| tree | 84d18abb36728c19ce467f7992dc0967153f1f42 | |
| parent | 487bb80496597103632e121a4db13f29f6fd401f (diff) | |
| download | bcm5719-llvm-68efaa7ad988607ea76f0775a9cd17b2814b7ac7.tar.gz bcm5719-llvm-68efaa7ad988607ea76f0775a9cd17b2814b7ac7.zip | |
Allow specifying an input file for the program being executed
llvm-svn: 5888
| -rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 1445f1ecb9a..422ececb40d 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/tools/bugpoint/ExecutionDriver.cpp @@ -34,6 +34,10 @@ namespace { clEnumValN(RunLLC, "run-llc", "Compile with LLC"), clEnumValN(RunCBE, "run-cbe", "Compile with CBE"), 0)); + + cl::opt<std::string> + InputFile("input", cl::init("/dev/null"), + cl::desc("Filename to pipe in as stdin (default: /dev/null)")); } /// AbstractInterpreter Class - Subclasses of this class are used to execute @@ -86,7 +90,7 @@ int LLI::ExecuteProgram(const std::string &Bytecode, }; return RunProgramWithTimeout(LLIPath, Args, - "/dev/null", OutputFile, OutputFile); + InputFile, OutputFile, OutputFile); } |

