Skip to content

Commit

Permalink
[XCOFF] support DWARF for 32-bit XCOFF for object output
Browse files Browse the repository at this point in the history
Reviewed By: jsji

Differential Revision: https://reviews.llvm.org/D97184
  • Loading branch information
chenzheng1030 committed Oct 8, 2021
1 parent 9efdca8 commit 5f4c915
Show file tree
Hide file tree
Showing 4 changed files with 489 additions and 61 deletions.
6 changes: 5 additions & 1 deletion llvm/lib/MC/MCSectionXCOFF.cpp
Expand Up @@ -118,6 +118,10 @@ void MCSectionXCOFF::PrintSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
bool MCSectionXCOFF::UseCodeAlign() const { return getKind().isText(); }

bool MCSectionXCOFF::isVirtualSection() const {
assert(isCsect() && "Only csect section can be virtual!");
// DWARF sections are always not virtual.
if (isDwarfSect())
return false;
assert(isCsect() &&
"Handling for isVirtualSection not implemented for this section!");
return XCOFF::XTY_CM == CsectProp->Type;
}

0 comments on commit 5f4c915

Please sign in to comment.