[llvm] afb41e3 - [DebugInfo] Remove an unused method DWARFUnit::getDWARF5HeaderSize(). NFC.
Igor Kudrin via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 21:42:53 PST 2020
Author: Igor Kudrin
Date: 2020-02-03T12:42:03+07:00
New Revision: afb41e3e074c129cdeb54c200d4386307c544e87
URL: https://github.com/llvm/llvm-project/commit/afb41e3e074c129cdeb54c200d4386307c544e87
DIFF: https://github.com/llvm/llvm-project/commit/afb41e3e074c129cdeb54c200d4386307c544e87.diff
LOG: [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
Added:
Modified:
llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
index b2ddb7e36b0c..27c2e6ccd620 100644
--- a/llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
+++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
@@ -371,26 +371,6 @@ class DWARFUnit {
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) {
More information about the llvm-commits
mailing list