mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[Orc] Fix OrcV2Examples after D94690
Differential Revision: https://reviews.llvm.org/D94690
This commit is contained in:
parent
b9583453c6
commit
249736daff
@ -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"
|
||||
|
@ -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());
|
||||
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user