projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f311a7
)
Allow specifying an input file for the program being executed
author
Chris Lattner
<sabre@nondot.org>
Wed, 23 Apr 2003 20:31:37 +0000
(20:31 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 23 Apr 2003 20:31:37 +0000
(20:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5888
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/bugpoint/ExecutionDriver.cpp
patch
|
blob
|
history
diff --git
a/tools/bugpoint/ExecutionDriver.cpp
b/tools/bugpoint/ExecutionDriver.cpp
index 1445f1ecb9ac722af14eb5617d73a353da459556..422ececb40d050b7172bf7ce0a41662d246fa0bb 100644
(file)
--- a/
tools/bugpoint/ExecutionDriver.cpp
+++ b/
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);
}