mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Allow specifying an input file for the program being executed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f311a7bce
commit
3c053a0a98
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user