[llvm] r258359 - Orc: Simplify lambda by using std::set's initializer_list ctor
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 20 15:50:23 PST 2016
Thanks Dave. :)
- Lang.
On Wed, Jan 20, 2016 at 2:24 PM, David Blaikie via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: dblaikie
> Date: Wed Jan 20 16:24:26 2016
> New Revision: 258359
>
> URL: http://llvm.org/viewvc/llvm-project?rev=258359&view=rev
> Log:
> Orc: Simplify lambda by using std::set's initializer_list ctor
>
> Modified:
> llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
>
> Modified: llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h?rev=258359&r1=258358&r2=258359&view=diff
>
> ==============================================================================
> --- llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h (original)
> +++ llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h Wed Jan 20
> 16:24:26 2016
> @@ -87,17 +87,16 @@ public:
> static IndirectStubsManagerBuilder createIndirectStubsMgrBuilder(Triple
> T);
>
> OrcCBindingsStack(TargetMachine &TM,
> - std::unique_ptr<CompileCallbackMgr> CCMgr,
> + std::unique_ptr<CompileCallbackMgr> CCMgr,
> IndirectStubsManagerBuilder IndirectStubsMgrBuilder)
> - : DL(TM.createDataLayout()),
> - IndirectStubsMgr(IndirectStubsMgrBuilder()),
> - CCMgr(std::move(CCMgr)),
> - ObjectLayer(),
> - CompileLayer(ObjectLayer, orc::SimpleCompiler(TM)),
> - CODLayer(CompileLayer,
> - [](Function &F) { std::set<Function*> S; S.insert(&F);
> return S; },
> - *this->CCMgr, std::move(IndirectStubsMgrBuilder), false),
> - CXXRuntimeOverrides([this](const std::string &S) { return
> mangle(S); }) {}
> + : DL(TM.createDataLayout()),
> IndirectStubsMgr(IndirectStubsMgrBuilder()),
> + CCMgr(std::move(CCMgr)), ObjectLayer(),
> + CompileLayer(ObjectLayer, orc::SimpleCompiler(TM)),
> + CODLayer(CompileLayer,
> + [](Function &F) { return std::set<Function *>({&F}); },
> + *this->CCMgr, std::move(IndirectStubsMgrBuilder), false),
> + CXXRuntimeOverrides(
> + [this](const std::string &S) { return mangle(S); }) {}
>
> ~OrcCBindingsStack() {
> // Run any destructors registered with __cxa_atexit.
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160120/a6cce4e0/attachment.html>
More information about the llvm-commits
mailing list