mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
[DebugInfo] Remove DwarfUnit::getDwarfVersion(). NFC.
This helper method was used only in one place, which can easily use the direct call. Differential revision: https://reviews.llvm.org/D85438
This commit is contained in:
parent
eabe546cbc
commit
432284da05
@ -1411,8 +1411,8 @@ void DwarfCompileUnit::addAddrTableBase() {
|
||||
const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();
|
||||
MCSymbol *Label = DD->getAddressPool().getLabel();
|
||||
addSectionLabel(getUnitDie(),
|
||||
getDwarfVersion() >= 5 ? dwarf::DW_AT_addr_base
|
||||
: dwarf::DW_AT_GNU_addr_base,
|
||||
DD->getDwarfVersion() >= 5 ? dwarf::DW_AT_addr_base
|
||||
: dwarf::DW_AT_GNU_addr_base,
|
||||
Label, TLOF.getDwarfAddrSection()->getBeginSymbol());
|
||||
}
|
||||
|
||||
|
@ -87,8 +87,6 @@ public:
|
||||
uint16_t getLanguage() const { return CUNode->getSourceLanguage(); }
|
||||
const DICompileUnit *getCUNode() const { return CUNode; }
|
||||
|
||||
uint16_t getDwarfVersion() const { return DD->getDwarfVersion(); }
|
||||
|
||||
/// Return true if this compile unit has something to write out.
|
||||
bool hasContent() const { return getUnitDie().hasChildren(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user