1
0
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:
xgupta 2021-02-04 22:44:02 +05:30
parent 8e87244228
commit 50ff35b458
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ set(LLVM_LINK_COMPONENTS
ExecutionEngine
Interpreter
MC
MCJIT
Support
nativecodegen
)

View File

@ -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.