[llvm] [NFC][llvm] Update call graph section's name. (PR #163429)

Paul Kirth via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 14 15:32:40 PDT 2025


================
@@ -1171,8 +1172,8 @@ MCObjectFileInfo::getCallGraphSection(const MCSection &TextSec) const {
   }
 
   return Ctx->getELFSection(
-      ".callgraph", ELF::SHT_PROGBITS, Flags, 0, GroupName, true,
-      ElfSec.getUniqueID(),
+      ".llvm.callgraph", ELF::SHT_PROGBITS, Flags, 0, GroupName,
----------------
ilovepi wrote:

I think this should be `ELF::SHT_LLVM_CALL_GRAPH` or `SHT_LLVM_CALLGRAPH` instead of `SHT_PROGBITS`.

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


More information about the llvm-commits mailing list