This patch introduces the constants defined to identify DWARF sections in XCOFF into llvm/BinaryFormat/XCOFF.h and adds (NFC) placeholder code to llvm/lib/MC/MCObjectFileInfo.cpp where the DWARF sections for XCOFF are to be set up.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/include/llvm/BinaryFormat/XCOFF.h | ||
|---|---|---|
| 97 | nit: Value | Macro | Description
-----------------------------------------------
0x10000 | SSUBTYP_DWINFO | DWARF info section
0x20000 | SSUBTYP_DWLINE | DWARF line-number section
0x30000 | SSUBTYP_DWPBNMS | DWARF public names section
0x40000 | SSUBTYP_DWPBTYP | DWARF public types section
0x50000 | SSUBTYP_DWARNGE | DWARF aranges section
0x60000 | SSUBTYP_DWABREV | DWARF abbreviation section
0x70000 | SSUBTYP_DWSTR | DWARF strings section
0x80000 | SSUBTYP_DWRNGES | DWARF ranges section
0x90000 | SSUBTYPE_DWLOC | DWARF location lists section
0xA0000 | SSUBTYPE_DWFRAME | DWARF frames section
0xB0000 | SSUBTYPE_DWMAC | DWARF macros section | |
| llvm/include/llvm/BinaryFormat/XCOFF.h | ||
|---|---|---|
| 97 | The "short names" here are precisely the second-half of the officially defined names. The descriptions from the AIX docs are a bad idea because they are ambiguous given DWARF 5's replacement of some of these with newer sections used for similar information and matching the same description. | |
| llvm/lib/MC/MCObjectFileInfo.cpp | ||
|---|---|---|
| 841 | what about to the initiation in the MCObjectFileInfo.h ? as | |
| llvm/lib/MC/MCObjectFileInfo.cpp | ||
|---|---|---|
| 841 | That's the common default that this code is supposed to eventually override. The patch description already says this patch is NFC. | |
LGTM.
| llvm/include/llvm/BinaryFormat/XCOFF.h | ||
|---|---|---|
| 87 | I didn't know there is a separator for numeric literals, that is pretty cool 👍 . | |
I didn't know there is a separator for numeric literals, that is pretty cool 👍 .