forked from OSchip/llvm-project
[DebugInfo] Remove an unused method DWARFUnit::getDWARF5HeaderSize(). NFC.
The method was initially added for DWARFVerifier::verifyUnitHeader() but its results were never actually used. Differential Revision: https://reviews.llvm.org/D73773
This commit is contained in:
parent
cf20fde1d1
commit
afb41e3e07
|
@ -371,26 +371,6 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
/// Return the number of bytes for the header of a unit of
|
||||
/// UnitType type.
|
||||
///
|
||||
/// This function must be called with a valid unit type which in
|
||||
/// DWARF5 is defined as one of the following six types.
|
||||
static uint32_t getDWARF5HeaderSize(uint8_t UnitType) {
|
||||
switch (UnitType) {
|
||||
case dwarf::DW_UT_compile:
|
||||
case dwarf::DW_UT_partial:
|
||||
return 12;
|
||||
case dwarf::DW_UT_skeleton:
|
||||
case dwarf::DW_UT_split_compile:
|
||||
return 20;
|
||||
case dwarf::DW_UT_type:
|
||||
case dwarf::DW_UT_split_type:
|
||||
return 24;
|
||||
}
|
||||
llvm_unreachable("Invalid UnitType.");
|
||||
}
|
||||
|
||||
llvm::Optional<object::SectionedAddress> getBaseAddress();
|
||||
|
||||
DWARFDie getUnitDIE(bool ExtractUnitDIEOnly = true) {
|
||||
|
|
Loading…
Reference in New Issue