[llvm-branch-commits] [llvm] IR: Introduce !elf_section_properties for setting section properties. (PR #149260)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Apr 19 13:02:28 PDT 2026


================
@@ -771,8 +772,8 @@ calcUniqueIDUpdateFlagsAndSize(const GlobalObject *GO, StringRef SectionName,
   // implicitly for this symbol e.g. .rodata.str1.1, then we don't need
   // to unique the section as the entry size for this symbol will be
   // compatible with implicitly created sections.
-  SmallString<128> ImplicitSectionNameStem = getELFSectionNameForGlobal(
-      GO, Kind, Mang, TM, EntrySize, false, /*MJTE=*/nullptr);
+  SmallString<128> ImplicitSectionNameStem =
----------------
vitalybuka wrote:

SmallString<128> -> auto to avoid hardcoding size in two places

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


More information about the llvm-branch-commits mailing list