Author: Stefan Gränitz Date: 2021-01-15T13:45:46+01:00 New Revision: 6edc3fe598aff04f9c1de6cc2ac97950b73b832d
URL: https://github.com/llvm/llvm-project/commit/6edc3fe598aff04f9c1de6cc2ac97950b73b832d DIFF: https://github.com/llvm/llvm-project/commit/6edc3fe598aff04f9c1de6cc2ac97950b73b832d.diff LOG: [Orc] Fix OrcV2Examples after D94690 Differential Revision: https://reviews.llvm.org/D94690 Added: Modified: llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp Removed: ################################################################################ diff --git a/llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp b/llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp index 9b020ef8c49d..2c975b188fb6 100644 --- a/llvm/examples/OrcV2Examples/LLJITDumpObjects/LLJITDumpObjects.cpp +++ b/llvm/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/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp b/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp index e37b761913fc..78a0c5b197db 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithGDBRegistrationListener/LLJITWithGDBRegistrationListener.cpp +++ b/llvm/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/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp index 36d28ab1aaaa..f349ce900e61 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithObjectLinkingLayerPlugin/LLJITWithObjectLinkingLayerPlugin.cpp @@ -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()); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits