<div dir="ltr">Thanks Dave. :)<div><br><div><div>- Lang.</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 20, 2016 at 2:24 PM, David Blaikie via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: dblaikie<br>
Date: Wed Jan 20 16:24:26 2016<br>
New Revision: 258359<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=258359&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=258359&view=rev</a><br>
Log:<br>
Orc: Simplify lambda by using std::set's initializer_list ctor<br>
<br>
Modified:<br>
llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h<br>
<br>
Modified: llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h?rev=258359&r1=258358&r2=258359&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h?rev=258359&r1=258358&r2=258359&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h (original)<br>
+++ llvm/trunk/lib/ExecutionEngine/Orc/OrcCBindingsStack.h Wed Jan 20 16:24:26 2016<br>
@@ -87,17 +87,16 @@ public:<br>
static IndirectStubsManagerBuilder createIndirectStubsMgrBuilder(Triple T);<br>
<br>
OrcCBindingsStack(TargetMachine &TM,<br>
- std::unique_ptr<CompileCallbackMgr> CCMgr,<br>
+ std::unique_ptr<CompileCallbackMgr> CCMgr,<br>
IndirectStubsManagerBuilder IndirectStubsMgrBuilder)<br>
- : DL(TM.createDataLayout()),<br>
- IndirectStubsMgr(IndirectStubsMgrBuilder()),<br>
- CCMgr(std::move(CCMgr)),<br>
- ObjectLayer(),<br>
- CompileLayer(ObjectLayer, orc::SimpleCompiler(TM)),<br>
- CODLayer(CompileLayer,<br>
- [](Function &F) { std::set<Function*> S; S.insert(&F); return S; },<br>
- *this->CCMgr, std::move(IndirectStubsMgrBuilder), false),<br>
- CXXRuntimeOverrides([this](const std::string &S) { return mangle(S); }) {}<br>
+ : DL(TM.createDataLayout()), IndirectStubsMgr(IndirectStubsMgrBuilder()),<br>
+ CCMgr(std::move(CCMgr)), ObjectLayer(),<br>
+ CompileLayer(ObjectLayer, orc::SimpleCompiler(TM)),<br>
+ CODLayer(CompileLayer,<br>
+ [](Function &F) { return std::set<Function *>({&F}); },<br>
+ *this->CCMgr, std::move(IndirectStubsMgrBuilder), false),<br>
+ CXXRuntimeOverrides(<br>
+ [this](const std::string &S) { return mangle(S); }) {}<br>
<br>
~OrcCBindingsStack() {<br>
// Run any destructors registered with __cxa_atexit.<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>