ExecutionEngine::create no longer takes a TraceMode argument.
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 24 Oct 2003 19:58:38 +0000 (19:58 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 24 Oct 2003 19:58:38 +0000 (19:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9488 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h
lib/ExecutionEngine/ExecutionEngine.cpp

index d67371376d06f448d3723bc1383f9d6730e23a42..c2a0a3a7d20d58f429d9be86a549090dd9379f1d 100644 (file)
@@ -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];
index 38bd14ab7260891e92a9917db96cd1eca3ee531c..dd647247c3fe7ad455d0b2105339cacef4b55591 100644 (file)
@@ -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;
   }