[PATCH] D77424: [XCOFF][AIX] Relocation support for SymB
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 7 10:50:43 PDT 2020
DiggerLin added inline comments.
================
Comment at: llvm/lib/MC/XCOFFObjectWriter.cpp:421
- // If we could not find SymA directly in SymbolIndexMap, this symbol could
- // either be a temporary symbol or an undefined symbol. In this case, we
- // would need to have the relocation reference its csect instead.
- uint32_t Index = SymbolIndexMap.find(&SymA) != SymbolIndexMap.end()
- ? SymbolIndexMap[&SymA]
- : SymbolIndexMap[SymASec->getQualNameSymbol()];
-
+ const uint32_t Index = getIndex(SymA, SymASec);
if (Type == XCOFF::RelocationType::R_POS)
----------------
what about use const auto ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77424/new/
https://reviews.llvm.org/D77424
More information about the llvm-commits
mailing list