From: Lang Hames Date: Mon, 2 Feb 2015 01:03:10 +0000 (+0000) Subject: [Orc] Add sensible defaults for the ObjectLinkingLayer constructor. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=a73abdb6809f4565b42bf66525200b0ea3cf332a;ds=inline [Orc] Add sensible defaults for the ObjectLinkingLayer constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227776 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h b/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h index 568f1051669..03b43aa3272 100644 --- a/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h +++ b/include/llvm/ExecutionEngine/Orc/ObjectLinkingLayer.h @@ -115,9 +115,9 @@ public: /// @brief Construct an ObjectLinkingLayer with the given NotifyLoaded, /// NotifyFinalized and CreateMemoryManager functors. ObjectLinkingLayer( - CreateRTDyldMMFtor CreateMemoryManager, - NotifyLoadedFtor NotifyLoaded, - NotifyFinalizedFtor NotifyFinalized) + CreateRTDyldMMFtor CreateMemoryManager = CreateRTDyldMMFtor(), + NotifyLoadedFtor NotifyLoaded = NotifyLoadedFtor(), + NotifyFinalizedFtor NotifyFinalized = NotifyFinalizedFtor()) : NotifyLoaded(std::move(NotifyLoaded)), NotifyFinalized(std::move(NotifyFinalized)), CreateMemoryManager(std::move(CreateMemoryManager)) {}