forked from OSchip/llvm-project
[Orc] Fix OrcV2Examples after D94690
Differential Revision: https://reviews.llvm.org/D94690
This commit is contained in:
parent
bab121a1b6
commit
6edc3fe598
|
@ -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