[clang] [llvm] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 16:00:20 PDT 2023
================
@@ -265,6 +269,63 @@ 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 (auto *GVar = dyn_cast<llvm::GlobalVariable>(GV)) {
----------------
MaskRay wrote:
We prefer early-return pattern for this `if` use.
https://github.com/llvm/llvm-project/pull/67999
More information about the llvm-commits
mailing list