1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[Orc] Fix OrcV2Examples after D94690

Differential Revision: https://reviews.llvm.org/D94690
This commit is contained in:
Stefan Gränitz 2021-01-15 13:32:02 +01:00
parent b9583453c6
commit 249736daff
3 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/ExecutionEngine/Orc/DebugUtils.h"
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"

View File

@ -78,7 +78,7 @@ int main(int argc, char *argv[]) {
// Make sure the debug info sections aren't stripped.
ObjLinkingLayer->setProcessAllSections(true);
return std::move(ObjLinkingLayer);
return ObjLinkingLayer;
})
.create());

View File

@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
ES, std::make_unique<jitlink::InProcessMemoryManager>());
// Add an instance of our plugin.
ObjLinkingLayer->addPlugin(std::make_unique<MyPlugin>());
return std::move(ObjLinkingLayer);
return ObjLinkingLayer;
})
.create());