diff options
author | Lang Hames <lhames@gmail.com> | 2018-04-16 18:05:22 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2018-04-16 18:05:22 +0000 |
commit | 3963b7d5e4e9f15bc74c3af7c9c08d048d394de3 (patch) | |
tree | 38ce83148635047972f7705529760aa4d86865ae /unittests/ExecutionEngine | |
parent | d7addc5a025c77b46598f1aaa74b5d7f936c1ba4 (diff) |
[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).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330141 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine')
-rw-r--r-- | unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp b/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp index 0a87ed08edf..a2d815a53e3 100644 --- a/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp +++ b/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) { |