diff options
| author | Lang Hames <lhames@gmail.com> | 2016-05-31 23:14:26 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2016-05-31 23:14:26 +0000 |
| commit | 656532075ba1c8d3019f8373382bc17a1cdd3308 (patch) | |
| tree | 3051b9dfa35d8770cfe9ab155770e2548e0812d3 /llvm/unittests | |
| parent | 96dad78963aa350f5687da52af28f55a3cf1ef3c (diff) | |
| download | bcm5719-llvm-656532075ba1c8d3019f8373382bc17a1cdd3308.tar.gz bcm5719-llvm-656532075ba1c8d3019f8373382bc17a1cdd3308.zip | |
[Orc] Add conversion to/from RuntimeDyld::SymbolInfo for JITSymbol.
This tidies up some code that was manually constructing RuntimeDyld::SymbolInfo
instances from JITSymbols. It will save more mess in the future when
JITSymbol::getAddress is extended to return an Expected<TargetAddress> rather
than just a TargetAddress, since we'll be able to embed the error checking in
the conversion.
llvm-svn: 271350
Diffstat (limited to 'llvm/unittests')
| -rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp index 89adb665f22..87928347d88 100644 --- a/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp @@ -165,7 +165,7 @@ TEST_F(ObjectLinkingLayerExecutionTest, NoDuplicateFinalization) { createLambdaResolver( [&](const std::string &Name) { if (auto Sym = ObjLayer.findSymbol(Name, true)) - return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); + return Sym.toRuntimeDyldSymbol(); return RuntimeDyld::SymbolInfo(nullptr); }, [](const std::string &Name) { |

