If we move the constructors to the .cpp file, we can drop the #include
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 16 Oct 2003 21:16:21 +0000 (21:16 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 16 Oct 2003 21:16:21 +0000 (21:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9180 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/ExecutionEngine.h

index 03fc6d6a9443b0dec30837d0013211ad651881b1..61ee44d5166edca17ccc3c35865821230707647b 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef EXECUTION_ENGINE_H
 #define EXECUTION_ENGINE_H
 
-#include "llvm/ModuleProvider.h"
 #include <vector>
 #include <string>
 #include <map>
@@ -18,6 +17,7 @@ class Function;
 union GenericValue;
 class GlobalValue;
 class Module;
+class ModuleProvider;
 class TargetData;
 class Type;
 
@@ -36,12 +36,8 @@ protected:
   }
 
 public:
-  ExecutionEngine(ModuleProvider *P) : CurMod(*(P->getModule())), MP(P) {
-    assert(P && "ModuleProvider is null?");
-  }
-  ExecutionEngine(Module *M) : CurMod(*M), MP(0) {
-     assert(M && "Module is null?");
-  }
+  ExecutionEngine(ModuleProvider *P);
+  ExecutionEngine(Module *M);
   virtual ~ExecutionEngine();
   
   Module &getModule() const { return CurMod; }