From 656532075ba1c8d3019f8373382bc17a1cdd3308 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Tue, 31 May 2016 23:14:26 +0000 Subject: [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 rather than just a TargetAddress, since we'll be able to embed the error checking in the conversion. llvm-svn: 271350 --- llvm/docs/tutorial/BuildingAJIT1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/docs/tutorial') diff --git a/llvm/docs/tutorial/BuildingAJIT1.rst b/llvm/docs/tutorial/BuildingAJIT1.rst index ebaea499bd7..0859100f8d8 100644 --- a/llvm/docs/tutorial/BuildingAJIT1.rst +++ b/llvm/docs/tutorial/BuildingAJIT1.rst @@ -190,7 +190,7 @@ available for execution. auto Resolver = createLambdaResolver( [&](const std::string &Name) { if (auto Sym = CompileLayer.findSymbol(Name, false)) - return RuntimeDyld::SymbolInfo(Sym.getAddress(), Sym.getFlags()); + return Sym.toRuntimeDyldSymbol(); return RuntimeDyld::SymbolInfo(nullptr); }, [](const std::string &S) { -- cgit v1.2.3