mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Add support for just compiling a program
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
779e640657
commit
f03715c6a8
@ -90,6 +90,12 @@ struct AbstractInterpreter {
|
||||
|
||||
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 @@ public:
|
||||
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,
|
||||
@ -137,6 +149,13 @@ public:
|
||||
: 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,
|
||||
const std::string &InputFile,
|
||||
|
@ -90,6 +90,12 @@ struct AbstractInterpreter {
|
||||
|
||||
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 @@ public:
|
||||
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,
|
||||
@ -137,6 +149,13 @@ public:
|
||||
: 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,
|
||||
const std::string &InputFile,
|
||||
|
Loading…
Reference in New Issue
Block a user