[llvm-commits] CVS: llvm/include/llvm/Support/ToolRunner.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 18 17:25:01 PST 2004
Changes in directory llvm/include/llvm/Support:
ToolRunner.h updated: 1.9 -> 1.10
---
Log message:
Add support for just compiling a program
---
Diffs of the changes: (+19 -0)
Index: llvm/include/llvm/Support/ToolRunner.h
diff -u llvm/include/llvm/Support/ToolRunner.h:1.9 llvm/include/llvm/Support/ToolRunner.h:1.10
--- llvm/include/llvm/Support/ToolRunner.h:1.9 Wed Feb 18 14:38:12 2004
+++ llvm/include/llvm/Support/ToolRunner.h Wed Feb 18 17:24:29 2004
@@ -90,6 +90,12 @@
virtual ~AbstractInterpreter() {}
+ /// compileProgram - Compile the specified program from bytecode to executable
+ /// code. This does not produce any output, it is only used when debugging
+ /// the code generator. If the code generator fails, an exception should be
+ /// thrown, otherwise, this function will just return.
+ virtual void compileProgram(const std::string &Bytecode) {}
+
/// ExecuteProgram - Run the specified bytecode file, emitting output to the
/// specified filename. This returns the exit code of the program.
///
@@ -111,6 +117,12 @@
CBE(const std::string &llcPath, GCC *Gcc) : LLCPath(llcPath), gcc(Gcc) { }
~CBE() { delete gcc; }
+ /// compileProgram - Compile the specified program from bytecode to executable
+ /// code. This does not produce any output, it is only used when debugging
+ /// the code generator. If the code generator fails, an exception should be
+ /// thrown, otherwise, this function will just return.
+ virtual void compileProgram(const std::string &Bytecode);
+
virtual int ExecuteProgram(const std::string &Bytecode,
const std::vector<std::string> &Args,
const std::string &InputFile,
@@ -136,6 +148,13 @@
LLC(const std::string &llcPath, GCC *Gcc)
: LLCPath(llcPath), gcc(Gcc) { }
~LLC() { delete gcc; }
+
+
+ /// compileProgram - Compile the specified program from bytecode to executable
+ /// code. This does not produce any output, it is only used when debugging
+ /// the code generator. If the code generator fails, an exception should be
+ /// thrown, otherwise, this function will just return.
+ virtual void compileProgram(const std::string &Bytecode);
virtual int ExecuteProgram(const std::string &Bytecode,
const std::vector<std::string> &Args,
More information about the llvm-commits
mailing list