diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-16 21:16:21 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-10-16 21:16:21 +0000 |
commit | 7034adbce2fc7e761d745dbf586167380a69ee1a (patch) | |
tree | 0a9f047bbe6ccb990e63ba83171cfa5f76ecb441 /include/llvm/ExecutionEngine | |
parent | 11b2dbd5f865c254c220a6355a4f436aad802337 (diff) | |
download | llvm-7034adbce2fc7e761d745dbf586167380a69ee1a.tar.gz llvm-7034adbce2fc7e761d745dbf586167380a69ee1a.tar.bz2 llvm-7034adbce2fc7e761d745dbf586167380a69ee1a.tar.xz |
If we move the constructors to the .cpp file, we can drop the #include
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ExecutionEngine')
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 03fc6d6a94..61ee44d516 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -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; } |