summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ExecutionEngine
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2018-04-16 18:05:22 +0000
committerLang Hames <lhames@gmail.com>2018-04-16 18:05:22 +0000
commitffeacb7b1aeb8f013a3137915ee5558dcaad4967 (patch)
tree7d96c17621774dfed89718673aa8ed07954fa56a /llvm/unittests/ExecutionEngine
parenta4fa0b880a63dad30d9ad1ff9fe8c2358c32dd77 (diff)
downloadbcm5719-llvm-ffeacb7b1aeb8f013a3137915ee5558dcaad4967.tar.gz
bcm5719-llvm-ffeacb7b1aeb8f013a3137915ee5558dcaad4967.zip
[ORC] Merge VSO notifyResolutionFailed and notifyFinalizationFailed in to
notifyMaterializationFailed. The notifyMaterializationFailed method can determine which error to raise by looking at which queue the pending queries are in (resolution or finalization). llvm-svn: 330141
Diffstat (limited to 'llvm/unittests/ExecutionEngine')
-rw-r--r--llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp b/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
index 0a87ed08edf..a2d815a53e3 100644
--- a/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
+++ b/llvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
@@ -323,7 +323,7 @@ TEST(CoreAPIsTest, FailResolution) {
{{Foo, JITSymbolFlags::Weak}, {Bar, JITSymbolFlags::Weak}});
},
[&](VSO &V) -> Error {
- V.notifyResolutionFailed(Names);
+ V.notifyMaterializationFailed(Names);
return Error::success();
},
[&](VSO &V, SymbolStringPtr Name) {
@@ -384,7 +384,7 @@ TEST(CoreAPIsTest, FailFinalization) {
auto FooSym = JITEvaluatedSymbol(FakeFooAddr, JITSymbolFlags::Exported);
auto BarSym = JITEvaluatedSymbol(FakeBarAddr, JITSymbolFlags::Exported);
V.resolve(SymbolMap({{Foo, FooSym}, {Bar, BarSym}}));
- V.notifyFinalizationFailed(Names);
+ V.notifyMaterializationFailed(Names);
return Error::success();
},
[&](VSO &V, SymbolStringPtr Name) {
OpenPOWER on IntegriCloud