[llvm] [clang] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 3 09:06:11 PDT 2023
================
@@ -265,6 +269,61 @@ bool AIXTargetCodeGenInfo::initDwarfEHRegSizeTable(
return PPC_initDwarfEHRegSizeTable(CGF, Address, Is64Bit, /*IsAIX*/ true);
}
+void AIXTargetCodeGenInfo::setTargetAttributes(
+ const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const {
+ if (!isa<llvm::GlobalVariable>(GV))
+ return;
+
+ auto *GVar = dyn_cast<llvm::GlobalVariable>(GV);
+ auto GVId = M.getMangledName(dyn_cast<NamedDecl>(D));
----------------
diggerlin wrote:
the GV->getName() is already mangle name, I just curiosity, why not use GV->getName() directly ?
https://github.com/llvm/llvm-project/pull/67999
More information about the llvm-commits
mailing list