mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-18 10:32:48 +02:00
[examples] Fix Target does not support MC emission in ParallelJIT
This commit is contained in:
parent
8e87244228
commit
50ff35b458
@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS
|
|||||||
ExecutionEngine
|
ExecutionEngine
|
||||||
Interpreter
|
Interpreter
|
||||||
MC
|
MC
|
||||||
|
MCJIT
|
||||||
Support
|
Support
|
||||||
nativecodegen
|
nativecodegen
|
||||||
)
|
)
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
#include "llvm/ExecutionEngine/ExecutionEngine.h"
|
||||||
#include "llvm/ExecutionEngine/GenericValue.h"
|
#include "llvm/ExecutionEngine/GenericValue.h"
|
||||||
|
#include "llvm/ExecutionEngine/MCJIT.h"
|
||||||
#include "llvm/IR/Argument.h"
|
#include "llvm/IR/Argument.h"
|
||||||
#include "llvm/IR/BasicBlock.h"
|
#include "llvm/IR/BasicBlock.h"
|
||||||
#include "llvm/IR/Constants.h"
|
#include "llvm/IR/Constants.h"
|
||||||
@ -256,6 +257,7 @@ void* callFunc( void* param )
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
InitializeNativeTarget();
|
InitializeNativeTarget();
|
||||||
|
LLVMInitializeNativeAsmPrinter();
|
||||||
LLVMContext Context;
|
LLVMContext Context;
|
||||||
|
|
||||||
// Create some module to put our function into it.
|
// Create some module to put our function into it.
|
||||||
|
Loading…
Reference in New Issue
Block a user