From: Lang Hames Date: Thu, 16 May 2019 00:21:07 +0000 (+0000) Subject: [JITLink][MachO] Use getSymbol64TableEntry for 64-bit MachO files. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2fb896522fecb1f985205e78aad8fc810962934;p=platform%2Fupstream%2Fllvm.git [JITLink][MachO] Use getSymbol64TableEntry for 64-bit MachO files. Fixes a think-o. No test case: The nlist and nlist64 data structures happen to line up for this field, so there's no way to construct a failing test case. llvm-svn: 360830 --- diff --git a/llvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp b/llvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp index 062bbda..d1cf875 100644 --- a/llvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp +++ b/llvm/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.cpp @@ -256,7 +256,7 @@ Error MachOAtomGraphBuilder::addNonCustomAtoms() { { uint16_t NDesc = 0; if (Obj.is64Bit()) - NDesc = Obj.getSymbolTableEntry(SymI->getRawDataRefImpl()).n_desc; + NDesc = Obj.getSymbol64TableEntry(SymI->getRawDataRefImpl()).n_desc; else NDesc = Obj.getSymbolTableEntry(SymI->getRawDataRefImpl()).n_desc;