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 | ffeacb7b1aeb8f013a3137915ee5558dcaad4967 (patch) | |
tree | 7d96c17621774dfed89718673aa8ed07954fa56a /llvm/unittests/ExecutionEngine | |
parent | a4fa0b880a63dad30d9ad1ff9fe8c2358c32dd77 (diff) | |
download | bcm5719-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.cpp | 4 |
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) { |