From 249736daff20f5b16547dd7f00aee288e406a817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= Date: Fri, 15 Jan 2021 13:32:02 +0100 Subject: [PATCH] [Orc] Fix OrcV2Examples after D94690 Differential Revision: https://reviews.llvm.org/D94690 --- examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp | 1 + .../LLJITWithGDBRegistrationListener.cpp | 2 +- .../LLJITWithObjectLinkingLayerPlugin.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp b/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp index 9b020ef8c49..2c975b188fb 100644 --- a/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp +++ b/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp @@ -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" diff --git a/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp b/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp index e37b761913f..78a0c5b197d 100644 --- a/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp +++ b/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp @@ -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()); diff --git a/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp index 36d28ab1aaa..f349ce900e6 100644 --- a/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp +++ b/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) { ES, std::make_unique()); // Add an instance of our plugin. ObjLinkingLayer->addPlugin(std::make_unique()); - return std::move(ObjLinkingLayer); + return ObjLinkingLayer; }) .create());