[llvm-commits] CVS: llvm/lib/Support/ToolRunner.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 18 17:27:55 PST 2004
Changes in directory llvm/lib/Support:
ToolRunner.cpp updated: 1.19 -> 1.20
---
Log message:
Add support for just running the code generator
---
Diffs of the changes: (+12 -0)
Index: llvm/lib/Support/ToolRunner.cpp
diff -u llvm/lib/Support/ToolRunner.cpp:1.19 llvm/lib/Support/ToolRunner.cpp:1.20
--- llvm/lib/Support/ToolRunner.cpp:1.19 Wed Feb 18 14:58:00 2004
+++ llvm/lib/Support/ToolRunner.cpp Wed Feb 18 17:24:41 2004
@@ -126,6 +126,12 @@
ProcessFailure(LLCPath, LLCArgs);
}
+void LLC::compileProgram(const std::string &Bytecode) {
+ std::string OutputAsmFile;
+ OutputAsm(Bytecode, OutputAsmFile);
+ removeFile(OutputAsmFile);
+}
+
int LLC::ExecuteProgram(const std::string &Bytecode,
const std::vector<std::string> &Args,
const std::string &InputFile,
@@ -241,6 +247,12 @@
if (RunProgramWithTimeout(LLCPath, LLCArgs, "/dev/null", "/dev/null",
"/dev/null"))
ProcessFailure(LLCPath, LLCArgs);
+}
+
+void CBE::compileProgram(const std::string &Bytecode) {
+ std::string OutputCFile;
+ OutputC(Bytecode, OutputCFile);
+ removeFile(OutputCFile);
}
int CBE::ExecuteProgram(const std::string &Bytecode,
More information about the llvm-commits
mailing list