[llvm] [x86] Handle implicit sections when determining if a global is large (PR #206210)

Pranav Kant via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 22 14:59:53 PDT 2026


================
@@ -368,6 +369,26 @@ SectionKind TargetLoweringObjectFile::getKindForGlobal(const GlobalObject *GO,
   return SectionKind::getData();
 }
 
+StringRef
+TargetLoweringObjectFile::getCustomSectionName(const GlobalObject *GO,
+                                               const TargetMachine &TM) {
+  const GlobalVariable *GV = dyn_cast<GlobalVariable>(GO);
----------------
pranavk wrote:

moving this function to TargetLoweringObjectFile seems unrelated to this PR?

I am fine with that but should we keep the comments from removed function as well?

https://github.com/llvm/llvm-project/pull/206210


More information about the llvm-commits mailing list