This is a child patch derived from D102603 to add XCOFF recognition of debug section types.
Details
- Reviewers
jhenderson Higuoxing shchenz MaskRay - Group Reviewers
Restricted Project - Commits
- rGc8e980ab4acc: [XCOFF][llvm-objdump] Dump the debug type in `--section-headers` option.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM, thanks! But please wait until another reviewer is happy about this change :)
P.S. You can click the Edit Related Revisions ... button on the right side to add a parent or a child patch.
LGTM too with some nits.
llvm/test/tools/llvm-objdump/XCOFF/section-headers.test | ||
---|---|---|
107 | nit: two Address? | |
122 | I understand this is for testing purposes. But STYP_DEBUG is specific for stabstrings and .dwinfo is specific for dwarf on AIX, I think it is not a good idea to make them together. | |
126 | Nit: should we put the RUN lines together at the front of this file? |
llvm/test/tools/llvm-objdump/XCOFF/section-headers-truncate.test | ||
---|---|---|
1 ↗ | (On Diff #347630) | Didn't notice this before, but it sounds like this functionality is unrelated to the debug section types, so should be split off into its own patch. |
llvm/test/tools/llvm-objdump/XCOFF/section-headers.test | ||
80 | I think you can drop the quotes around the option name. I'd also normalise the order to match the previous comment (i.e. -h/--section-headers). | |
81 | Delete this blank line, so that the comment is clearly tied to the specific test case. | |
125 | Delete this blank line, so that the comment is clearly tied to the specific test case. | |
126 |
I don't think we should do this. The RUN/CHECK/YAML blocks are for two somewhat distinct test cases, so shouldn't be intermixed. Intermixing them would make the test harder to follow. |
I think you can drop the quotes around the option name. I'd also normalise the order to match the previous comment (i.e. -h/--section-headers).