summaryrefslogtreecommitdiff
path: root/examples/HowToUseJIT
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-17 16:48:44 +0000
committerChris Lattner <sabre@nondot.org>2009-06-17 16:48:44 +0000
commitda06288aeb28393b937e17dcd180658c3737a6e5 (patch)
treeb0a18115e46cb14807f77816c11743736673471b /examples/HowToUseJIT
parent7b04c9415247fc7678dc0319df05353636a16272 (diff)
downloadllvm-da06288aeb28393b937e17dcd180658c3737a6e5.tar.gz
llvm-da06288aeb28393b937e17dcd180658c3737a6e5.tar.bz2
llvm-da06288aeb28393b937e17dcd180658c3737a6e5.tar.xz
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/HowToUseJIT')
-rw-r--r--examples/HowToUseJIT/HowToUseJIT.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp
index b5c6d11191..a9f10009e1 100644
--- a/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -42,11 +42,15 @@
#include "llvm/ExecutionEngine/JIT.h"
#include "llvm/ExecutionEngine/Interpreter.h"
#include "llvm/ExecutionEngine/GenericValue.h"
+#include "llvm/Target/TargetSelect.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
using namespace llvm;
int main() {
+
+ InitializeNativeTarget();
+
// Create some module to put our function into it.
Module *M = new Module("test");