This adds a test to document --elf-cg-profile option we have.
I am going to refactor this area, and this patch is mostly to
create a base for a follow-up change.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Hmmm. Should we rename to --llvm-cg-profile? Its a LLVM extention first of all.
And if we want to implement the GNU version (that is what I am working on), perhaps it is good idea to add this suffix to emphasise that is not a common GNU option?
Comment Actions
Seems reasonable to me. If the section does get adopted by GNU, it likely will need to go through some standardisation (e.g. getting a new SHT_* type), so the more generic "--cg-profile" switch can be saved for then.
Comment Actions
- Addressed review comments.
llvm/test/tools/llvm-readobj/ELF/call-graph-profile.test | ||
---|---|---|
33 | Done. |
Comment Actions
--llvm-cg-profile sounds good.
(I heard that .llvm.call-graph-profile is not that useful.. It also conflicts with lld --symbol-ordering-file=, which may be more useful..
handle the --elf-cg-profile...