mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-07 16:54:48 +00:00
ExecutionEngine::create no longer takes a TraceMode argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9488 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9583acb8a0
commit
20a277e162
@ -56,8 +56,7 @@ public:
|
|||||||
virtual GenericValue run(Function *F,
|
virtual GenericValue run(Function *F,
|
||||||
const std::vector<GenericValue> &ArgValues) = 0;
|
const std::vector<GenericValue> &ArgValues) = 0;
|
||||||
|
|
||||||
static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter,
|
static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter);
|
||||||
bool TraceMode);
|
|
||||||
|
|
||||||
void addGlobalMapping(const Function *F, void *Addr) {
|
void addGlobalMapping(const Function *F, void *Addr) {
|
||||||
void *&CurVal = GlobalAddress[(const GlobalValue*)F];
|
void *&CurVal = GlobalAddress[(const GlobalValue*)F];
|
||||||
|
@ -47,18 +47,17 @@ ExecutionEngine::~ExecutionEngine() {
|
|||||||
/// NULL is returned.
|
/// NULL is returned.
|
||||||
///
|
///
|
||||||
ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
|
ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP,
|
||||||
bool ForceInterpreter,
|
bool ForceInterpreter) {
|
||||||
bool TraceMode) {
|
|
||||||
ExecutionEngine *EE = 0;
|
ExecutionEngine *EE = 0;
|
||||||
|
|
||||||
// If there is nothing that is forcing us to use the interpreter, make a JIT.
|
// Unless the interpreter was explicitly selected, make a JIT.
|
||||||
if (!ForceInterpreter && !TraceMode)
|
if (!ForceInterpreter)
|
||||||
EE = VM::create(MP);
|
EE = VM::create(MP);
|
||||||
|
|
||||||
// If we can't make a JIT, make an interpreter instead.
|
// If we can't make a JIT, make an interpreter instead.
|
||||||
try {
|
try {
|
||||||
if (EE == 0)
|
if (EE == 0)
|
||||||
EE = Interpreter::create(MP->materializeModule(), TraceMode);
|
EE = Interpreter::create(MP->materializeModule());
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
EE = 0;
|
EE = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user