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 | da06288aeb28393b937e17dcd180658c3737a6e5 (patch) | |
tree | b0a18115e46cb14807f77816c11743736673471b /examples/Kaleidoscope | |
parent | 7b04c9415247fc7678dc0319df05353636a16272 (diff) | |
download | external_llvm-da06288aeb28393b937e17dcd180658c3737a6e5.zip external_llvm-da06288aeb28393b937e17dcd180658c3737a6e5.tar.gz external_llvm-da06288aeb28393b937e17dcd180658c3737a6e5.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/Kaleidoscope')
-rw-r--r-- | examples/Kaleidoscope/toy.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/toy.cpp index bec430c..c75014a 100644 --- a/examples/Kaleidoscope/toy.cpp +++ b/examples/Kaleidoscope/toy.cpp @@ -5,6 +5,7 @@ #include "llvm/PassManager.h" #include "llvm/Analysis/Verifier.h" #include "llvm/Target/TargetData.h" +#include "llvm/Target/TargetSelect.h" #include "llvm/Transforms/Scalar.h" #include "llvm/Support/IRBuilder.h" #include <cstdio> @@ -1081,6 +1082,8 @@ double printd(double X) { //===----------------------------------------------------------------------===// int main() { + InitializeNativeTarget(); + // Install standard binary operators. // 1 is lowest precedence. BinopPrecedence['='] = 2; |