[PATCH] D151932: Add dsymutil dwarf5 tests for darwin
Shubham Sandeep Rastogi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 1 13:51:26 PDT 2023
rastogishubham created this revision.
rastogishubham added reviewers: aprantl, JDevlieghere, bulbazord, fdeazeve.
rastogishubham added a project: debug-info.
Herald added a project: All.
rastogishubham requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
There are two simple tests to make sure dsymutil does the right thing when emitting dwarf5 for darwin platforms.
The first test, `dwarf5-darwin.test` checks to make sure that dsymutil generates the correct headers and sections for a darwin binary with dwarf5 in it
The second test, `dwarf5-dwarf4-comb.test` checks to make sure that dsymutil generates the correct headers and sections for a darwin binary with which was linked with one object file with dwarf4 and the other with dwarf 5 in it.
We can see that in this case, dsymutil will generate dwarf4 and dwarf5, it doesn't do an "upgrade" to dwarf5 for everything. This is consistent with how it behaves when linking something with dwarf4 and dwarf2 as well
https://reviews.llvm.org/D151932
Files:
llvm/test/tools/dsymutil/ARM/dwarf5-darwin.test
llvm/test/tools/dsymutil/ARM/dwarf5-dwarf4-comb.test
llvm/test/tools/dsymutil/Inputs/dwarf5-darwin.yaml
llvm/test/tools/dsymutil/Inputs/dwarf5-dwarf4-darwin.yaml
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151932.527596.patch
Type: text/x-patch
Size: 28543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230601/5bef7da3/attachment.bin>
More information about the llvm-commits
mailing list