diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-24 19:58:38 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-10-24 19:58:38 +0000 |
commit | 20a277e162f971ec1b9c6f2c90a214c177d54f99 (patch) | |
tree | 3d8ec4c96899c707f0899f5f8e67e7bde1d6f8d7 | |
parent | 9583acb8a092765dec76cb19fbceb12ee141731f (diff) | |
download | external_llvm-20a277e162f971ec1b9c6f2c90a214c177d54f99.zip external_llvm-20a277e162f971ec1b9c6f2c90a214c177d54f99.tar.gz external_llvm-20a277e162f971ec1b9c6f2c90a214c177d54f99.tar.bz2 |
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
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 3 | ||||
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 9 |
2 files changed, 5 insertions, 7 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index d673713..c2a0a3a 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -56,8 +56,7 @@ public: virtual GenericValue run(Function *F, const std::vector<GenericValue> &ArgValues) = 0; - static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter, - bool TraceMode); + static ExecutionEngine *create(ModuleProvider *MP, bool ForceInterpreter); void addGlobalMapping(const Function *F, void *Addr) { void *&CurVal = GlobalAddress[(const GlobalValue*)F]; diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 38bd14a..dd64724 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -47,18 +47,17 @@ ExecutionEngine::~ExecutionEngine() { /// NULL is returned. /// ExecutionEngine *ExecutionEngine::create(ModuleProvider *MP, - bool ForceInterpreter, - bool TraceMode) { + bool ForceInterpreter) { ExecutionEngine *EE = 0; - // If there is nothing that is forcing us to use the interpreter, make a JIT. - if (!ForceInterpreter && !TraceMode) + // Unless the interpreter was explicitly selected, make a JIT. + if (!ForceInterpreter) EE = VM::create(MP); // If we can't make a JIT, make an interpreter instead. try { if (EE == 0) - EE = Interpreter::create(MP->materializeModule(), TraceMode); + EE = Interpreter::create(MP->materializeModule()); } catch (...) { EE = 0; } |