diff options
Diffstat (limited to 'llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp')
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp index 054fc16cabd..25b6c891c62 100644 --- a/llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/GlobalMappingLayerTest.cpp @@ -21,7 +21,7 @@ struct MockBaseLayer { JITSymbol findSymbol(const std::string &Name, bool ExportedSymbolsOnly) { if (Name == "bar") - return llvm::orc::JITSymbol(0x4567, JITSymbolFlags::Exported); + return llvm::JITSymbol(0x4567, JITSymbolFlags::Exported); return nullptr; } @@ -37,13 +37,13 @@ TEST(GlobalMappingLayerTest, Empty) { // Test fall-through for symbol in base layer. auto BarSym = L.findSymbol("bar", true); - EXPECT_EQ(BarSym.getAddress(), static_cast<TargetAddress>(0x4567)) + EXPECT_EQ(BarSym.getAddress(), static_cast<JITTargetAddress>(0x4567)) << "Symbol lookup fall-through failed."; // Test setup of a global mapping. L.setGlobalMapping("foo", 0x0123); auto FooSym2 = L.findSymbol("foo", true); - EXPECT_EQ(FooSym2.getAddress(), static_cast<TargetAddress>(0x0123)) + EXPECT_EQ(FooSym2.getAddress(), static_cast<JITTargetAddress>(0x0123)) << "Symbol mapping setup failed."; // Test removal of a global mapping. |