diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:26 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-07-04 13:58:26 +0000 |
| commit | 18f153bdb9db52e7089a2d5293b96c45a3124a26 (patch) | |
| tree | 84360c8989c912127a383af37c4b1aa5767bd16e /examples/HowToUseJIT/HowToUseJIT.cpp | |
| parent | f859468f5a21b6952ab62917777f9fb3bba57003 (diff) | |
Notes
Diffstat (limited to 'examples/HowToUseJIT/HowToUseJIT.cpp')
| -rw-r--r-- | examples/HowToUseJIT/HowToUseJIT.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp index a9f10009e1eca..6734547916245 100644 --- a/examples/HowToUseJIT/HowToUseJIT.cpp +++ b/examples/HowToUseJIT/HowToUseJIT.cpp @@ -34,6 +34,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" @@ -50,9 +51,11 @@ using namespace llvm; int main() { InitializeNativeTarget(); + + LLVMContext Context; // Create some module to put our function into it. - Module *M = new Module("test"); + Module *M = new Module("test", Context); // Create the add1 function entry and insert this entry into module M. The // function will have a return type of "int" and take an argument of "int". |
