summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-04-16 18:05:24 +0000
committerLang Hames <lhames@gmail.com>2018-04-16 18:05:24 +0000
commit67feadb2c757d7ff7cbaacdbcdecdf7d077a7c6d (patch)
tree738cf1e1b67a65c3b61d219ee4b528835405c156 /llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
parentffeacb7b1aeb8f013a3137915ee5558dcaad4967 (diff)
downloadbcm5719-llvm-67feadb2c757d7ff7cbaacdbcdecdf7d077a7c6d.tar.gz
bcm5719-llvm-67feadb2c757d7ff7cbaacdbcdecdf7d077a7c6d.zip
[ORC] Add a MaterializationResponsibility class to track responsibility for
materializing function definitions. MaterializationUnit instances are responsible for resolving and finalizing symbol definitions when their materialize method is called. By contract, the MaterializationUnit must materialize all definitions it is responsible for and no others. If it can not materialize all definitions (because of some error) then it must notify the associated VSO about each definition that could not be materialized. The MaterializationResponsibility class tracks this responsibility, asserting that all required symbols are resolved and finalized, and that no extraneous symbols are resolved or finalized. In the event of an error it provides a convenience method for notifying the VSO about each definition that could not be materialized. llvm-svn: 330142
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp b/llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
index db29024f470..514aafaff43 100644
--- a/llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/LegacyAPIInteropTest.cpp
@@ -35,7 +35,7 @@ TEST(LegacyAPIInteropTest, QueryAgainstVSO) {
auto Lookup = [&](std::shared_ptr<AsynchronousSymbolQuery> Query,
SymbolNameSet Symbols) {
auto R = V.lookup(std::move(Query), Symbols);
- EXPECT_TRUE(R.MaterializationUnits.empty())
+ EXPECT_TRUE(R.Materializers.empty())
<< "Query resulted in unexpected materialization work";
return std::move(R.UnresolvedSymbols);
};
OpenPOWER on IntegriCloud