diff options
Diffstat (limited to 'examples/HowToUseJIT')
| -rw-r--r-- | examples/HowToUseJIT/HowToUseJIT.cpp | 12 | ||||
| -rw-r--r-- | examples/HowToUseJIT/Makefile | 15 |
2 files changed, 10 insertions, 17 deletions
diff --git a/examples/HowToUseJIT/HowToUseJIT.cpp b/examples/HowToUseJIT/HowToUseJIT.cpp index e0bf6a00bf017..0050d27b45d7f 100644 --- a/examples/HowToUseJIT/HowToUseJIT.cpp +++ b/examples/HowToUseJIT/HowToUseJIT.cpp @@ -35,22 +35,30 @@ //===----------------------------------------------------------------------===// #include "llvm/ADT/STLExtras.h" +#include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/ExecutionEngine/GenericValue.h" -#include "llvm/ExecutionEngine/Interpreter.h" +#include "llvm/IR/Argument.h" +#include "llvm/IR/BasicBlock.h" #include "llvm/IR/Constants.h" #include "llvm/IR/DerivedTypes.h" +#include "llvm/IR/Function.h" #include "llvm/IR/IRBuilder.h" #include "llvm/IR/Instructions.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" +#include "llvm/IR/Type.h" +#include "llvm/Support/Casting.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/TargetSelect.h" #include "llvm/Support/raw_ostream.h" +#include <algorithm> +#include <cassert> +#include <memory> +#include <vector> using namespace llvm; int main() { - InitializeNativeTarget(); LLVMContext Context; diff --git a/examples/HowToUseJIT/Makefile b/examples/HowToUseJIT/Makefile deleted file mode 100644 index 26a25a12bf23a..0000000000000 --- a/examples/HowToUseJIT/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -##===- examples/HowToUseJIT/Makefile -----------------------*- Makefile -*-===## -# -# The LLVM Compiler Infrastructure -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -##===----------------------------------------------------------------------===## -LEVEL = ../.. -TOOLNAME = HowToUseJIT -EXAMPLE_TOOL = 1 - -LINK_COMPONENTS := mcjit interpreter nativecodegen - -include $(LEVEL)/Makefile.common |
