[PATCH] D132348: [AIX] remove the error report for the symbol name startswith "_Renamed.."
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 00:23:15 PDT 2022
shchenz added a comment.
@@ -2601,19 +2603,27 @@ void PPCAIXAsmPrinter::emitEndOfAsmFile(Module &M) {
SmallString<128> Name;
StringRef Prefix = ".";
Name += Prefix;
- Name += I.first.first->getName();
+ Name += cast<MCSymbolXCOFF>(I.first.first)->getSymbolTableName();
Will this make more sense? I saw for normal global variables, we will use the original symbol name(name in the symbol table) as the input for the symbol for TOC entry. See function `MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry()`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132348/new/
https://reviews.llvm.org/D132348
More information about the llvm-commits
mailing list