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 | d24df24527855232e7fc36440c35332313774f24 (patch) | |
tree | d36c2b7d59248b5742103f6da1d108d1ad26d961 /llvm/examples/ParallelJIT/ParallelJIT.cpp | |
parent | f44da17824e6d539353cfcb15ec75d677a1494ba (diff) | |
download | llvm-d24df24527855232e7fc36440c35332313774f24.zip llvm-d24df24527855232e7fc36440c35332313774f24.tar.gz llvm-d24df24527855232e7fc36440c35332313774f24.tar.bz2 |
make sure that JIT examples link in their appropriate target.
llvm-svn: 73613
Diffstat (limited to 'llvm/examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r-- | llvm/examples/ParallelJIT/ParallelJIT.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp index e812d84..a6d7dcf 100644 --- a/llvm/examples/ParallelJIT/ParallelJIT.cpp +++ b/llvm/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"); |