aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorjasonliu <jasonliu.development@gmail.com>2020-07-06 14:18:06 +0000
committerjasonliu <jasonliu.development@gmail.com>2020-07-06 15:49:15 +0000
commit6d3ae365bdfc846b93d1033cfe625403a3b85ac5 (patch)
treeafde29c0dbaea373d8a90f6bc6e21db9b3d1b32a /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parente80b81d1cbf85dcd427759369978afdb48f0998f (diff)
downloadllvm-6d3ae365bdfc846b93d1033cfe625403a3b85ac5.zip
llvm-6d3ae365bdfc846b93d1033cfe625403a3b85ac5.tar.gz
llvm-6d3ae365bdfc846b93d1033cfe625403a3b85ac5.tar.bz2
[XCOFF][AIX] Give symbol an internal name when desired symbol name contains invalid character(s)
Summary: When a desired symbol name contains invalid character that the system assembler could not process, we need to emit .rename directive in assembly path in order for that desired symbol name to appear in the symbol table. Reviewed By: hubert.reinterpretcast, DiggerLin, daltenty, Xiangling_L Differential Revision: https://reviews.llvm.org/D82481
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 8d67030..eef5c14 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -2168,6 +2168,6 @@ MCSection *TargetLoweringObjectFileXCOFF::getSectionForFunctionDescriptor(
MCSection *TargetLoweringObjectFileXCOFF::getSectionForTOCEntry(
const MCSymbol *Sym) const {
return getContext().getXCOFFSection(
- cast<MCSymbolXCOFF>(Sym)->getUnqualifiedName(), XCOFF::XMC_TC,
+ cast<MCSymbolXCOFF>(Sym)->getSymbolTableName(), XCOFF::XMC_TC,
XCOFF::XTY_SD, XCOFF::C_HIDEXT, SectionKind::getData());
}