mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-28 16:28:58 +00:00
Fix lli with OrcLazyJIT: the default DataLayout was used.
Set the correct one using the TargetMachine instead. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 243664
This commit is contained in:
parent
5f7f2a06d7
commit
be5a5fb8a7
@ -123,6 +123,7 @@ int llvm::runOrcLazyJIT(std::unique_ptr<Module> M, int ArgC, char* ArgV[]) {
|
||||
EngineBuilder EB;
|
||||
EB.setOptLevel(getOptLevel());
|
||||
auto TM = std::unique_ptr<TargetMachine>(EB.selectTarget());
|
||||
M->setDataLayout(TM->createDataLayout());
|
||||
auto &Context = getGlobalContext();
|
||||
auto CallbackMgrBuilder =
|
||||
OrcLazyJIT::createCallbackManagerBuilder(Triple(TM->getTargetTriple()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user