diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2020-05-08 16:32:12 -0400 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2020-05-08 16:51:34 -0400 |
commit | ab59aa6c6130e2eb632f79d4163a33c63c58b117 (patch) | |
tree | c96ed0c0b65646ecf36442383b11032c221fbd18 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | b116ded57da3530e661f871f4191c59cd9e091cd (diff) | |
download | llvm-ab59aa6c6130e2eb632f79d4163a33c63c58b117.zip llvm-ab59aa6c6130e2eb632f79d4163a33c63c58b117.tar.gz llvm-ab59aa6c6130e2eb632f79d4163a33c63c58b117.tar.bz2 |
[XCOFF] XCOFF constants, MCObjectFileInfo placeholder code for DWARF; NFC
Summary:
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.
Reviewers: jasonliu, sfertile, daltenty, DiggerLin, Xiangling_L
Reviewed By: jasonliu, sfertile, DiggerLin
Differential Revision: https://reviews.llvm.org/D79220
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index 90e760f..f79b068 100644 --- a/llvm/lib/MC/MCObjectFileInfo.cpp +++ b/llvm/lib/MC/MCObjectFileInfo.cpp @@ -833,6 +833,22 @@ void MCObjectFileInfo::initXCOFFMCObjectFileInfo(const Triple &T) { // The TOC-base always has 0 size, but 4 byte alignment. TOCBaseSection->setAlignment(Align(4)); + + // DWARF sections for XCOFF are not csects. They are special STYP_DWARF + // sections, and the individual DWARF sections are distinguished by their + // section subtype. + // TODO: Populate the DWARF sections appropriately. + DwarfAbbrevSection = nullptr; // SSUBTYP_DWABREV + DwarfInfoSection = nullptr; // SSUBTYP_DWINFO + DwarfLineSection = nullptr; // SSUBTYP_DWLINE + DwarfFrameSection = nullptr; // SSUBTYP_DWFRAME + DwarfPubNamesSection = nullptr; // SSUBTYP_DWPBNMS + DwarfPubTypesSection = nullptr; // SSUBTYP_DWPBTYP + DwarfStrSection = nullptr; // SSUBTYP_DWSTR + DwarfLocSection = nullptr; // SSUBTYP_DWLOC + DwarfARangesSection = nullptr; // SSUBTYP_DWARNGE + DwarfRangesSection = nullptr; // SSUBTYP_DWRNGES + DwarfMacinfoSection = nullptr; // SSUBTYP_DWMAC } void MCObjectFileInfo::InitMCObjectFileInfo(const Triple &TheTriple, bool PIC, |