[llvm] [llvm] Update call graph ELF section type. (PR #164461)

Prabhu Rajasekaran via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 22 10:13:22 PDT 2025


Prabhuk wrote:

> > The pre-merge check is failing on Windows. Is it related?
> > Should
> > https://github.com/llvm/llvm-project/blob/655de70c485ef165b6e9576a50686aac629e2711/llvm/lib/ObjectYAML/ELFYAML.cpp#L708
> > 
> > be updated? (I note that it hasn't been for some other section types, but I suspect it's just been overlooked.
> 
> The premerge checks are unrelated. The windows builders are green again in our upstream builders so this might go away after I update the branch. I've updated the ELFYAML.cpp. I am testing it locally and will add a test and will update this thread after.

After adding SHT_LLVM_CALLGRAPH to ELFYAML.cpp

```
- Name:            .llvm.callgraph
    Type:            SHT_LLVM_CALL_GRAPH
    Flags:           [ SHF_LINK_ORDER ]
```

Before

```
- Name:            .llvm.callgraph
    Type:            0x6FFF4C0F    
    Flags:           [ SHF_LINK_ORDER ]
```

I assume we want the new behavior with YAML output showing the `SHT_LLVM_CALL_GRAPH` as type. I'll add a test.

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


More information about the llvm-commits mailing list