[PATCH] D78045: [XCOFF][AIX] Fix getSymbol to return the correct qualname when necessary
Digger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 08:21:58 PDT 2020
DiggerLin added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:1614
OutStreamer->emitXCOFFLocalCommonSymbol(
- GVSym, Size, Csect->getQualNameSymbol(), Align);
+ OutContext.getOrCreateSymbol(GVSym->getUnqualifiedName()), Size,
+ GVSym, Align);
----------------
since we have a qualname symbol, I do not think we need to create and unnecessary UnqualifiedName symbol.
maybe we change change the interface of emitXCOFFLocalCommonSymbol. I do not think we need to pass two Symbols(MCSymbol *LabelSym, and MCSymbol *CsectSym) in the emitXCOFFLocalCommonSymbol.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78045/new/
https://reviews.llvm.org/D78045
More information about the llvm-commits
mailing list