forked from OSchip/llvm-project
[examples] Fix Target does not support MC emission in ParallelJIT
This commit is contained in:
parent
cafdf46878
commit
01b3627c71
|
@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS
|
|||
ExecutionEngine
|
||||
Interpreter
|
||||
MC
|
||||
MCJIT
|
||||
Support
|
||||
nativecodegen
|
||||
)
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
#include "llvm/ADT/STLExtras.h"
|
||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||
#include "llvm/ExecutionEngine/MCJIT.h"
|
||||
#include "llvm/IR/Argument.h"
|
||||
#include "llvm/IR/BasicBlock.h"
|
||||
#include "llvm/IR/Constants.h"
|
||||
|
@ -256,6 +257,7 @@ void* callFunc( void* param )
|
|||
|
||||
int main() {
|
||||
InitializeNativeTarget();
|
||||
LLVMInitializeNativeAsmPrinter();
|
||||
LLVMContext Context;
|
||||
|
||||
// Create some module to put our function into it.
|
||||
|
|
Loading…
Reference in New Issue