1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Orc: Streamline some lambda usage in a unit test

llvm-svn: 252070
This commit is contained in:
David Blaikie 2015-11-04 19:43:24 +00:00
parent 92414e9e7f
commit 9a95592e5f

View File

@ -69,15 +69,11 @@ TEST(CompileOnDemandLayerTest, FindSymbol) {
typedef decltype(MockBaseLayer) MockBaseLayerT;
DummyCallbackManager CallbackMgr;
auto StubsMgrBuilder =
[]() {
return llvm::make_unique<DummyStubsManager>();
};
llvm::orc::CompileOnDemandLayer<MockBaseLayerT>
COD(MockBaseLayer,
[](Function &F) { std::set<Function*> S; S.insert(&F); return S; },
CallbackMgr, StubsMgrBuilder, true);
llvm::orc::CompileOnDemandLayer<MockBaseLayerT> COD(
MockBaseLayer, [](Function &F) { return std::set<Function *>{&F}; },
CallbackMgr, [] { return llvm::make_unique<DummyStubsManager>(); }, true);
auto Sym = COD.findSymbol("foo", true);
EXPECT_TRUE(!!Sym)