diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-17 16:48:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-17 16:48:44 +0000 |
commit | 8ed24c5faea78d0c7525d2bda240cf9b86cb9c7b (patch) | |
tree | b0a18115e46cb14807f77816c11743736673471b /examples/ParallelJIT | |
parent | 65ffae9b9d518dafe367598ea62dd69e51c254d1 (diff) | |
download | external_llvm-8ed24c5faea78d0c7525d2bda240cf9b86cb9c7b.zip external_llvm-8ed24c5faea78d0c7525d2bda240cf9b86cb9c7b.tar.gz external_llvm-8ed24c5faea78d0c7525d2bda240cf9b86cb9c7b.tar.bz2 |
make sure that JIT examples link in their appropriate target.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/ParallelJIT')
-rw-r--r-- | examples/ParallelJIT/ParallelJIT.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index e812d84..a6d7dcf 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/examples/ParallelJIT/ParallelJIT.cpp @@ -26,6 +26,7 @@ #include "llvm/ExecutionEngine/JIT.h" #include "llvm/ExecutionEngine/Interpreter.h" #include "llvm/ExecutionEngine/GenericValue.h" +#include "llvm/Target/TargetSelect.h" #include <iostream> using namespace llvm; @@ -229,8 +230,9 @@ void* callFunc( void* param ) return (void*)(intptr_t)gv.IntVal.getZExtValue(); } -int main() -{ +int main() { + InitializeNativeTarget(); + // Create some module to put our function into it. Module *M = new Module("test"); |