From 3153764c88c1ae0fa2223ce31112ef0e5e286c98 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 26 Apr 2019 13:41:19 +0000 Subject: [PATCH] s/Dwarf 5/DWARF v5/ NFC llvm-svn: 359307 --- llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h | 8 ++++---- llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h | 2 +- llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h index ed06e1e..3033757 100644 --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h @@ -222,7 +222,7 @@ public: /// referenced by the name table and interpreted with the help of the /// abbreviation table. class DWARFDebugNames : public DWARFAcceleratorTable { - /// The fixed-size part of a Dwarf 5 Name Index header + /// The fixed-size part of a DWARF v5 Name Index header struct HeaderPOD { uint32_t UnitLength; uint16_t Version; @@ -241,7 +241,7 @@ public: class NameIterator; class ValueIterator; - /// Dwarf 5 Name Index header. + /// DWARF v5 Name Index header. struct Header : public HeaderPOD { SmallString<8> AugmentationString; @@ -348,7 +348,7 @@ private: }; public: - /// A single entry in the Name Table (Dwarf 5 sect. 6.1.1.4.6) of the Name + /// A single entry in the Name Table (DWARF v5 sect. 6.1.1.4.6) of the Name /// Index. class NameTableEntry { DataExtractor StrData; @@ -380,7 +380,7 @@ public: uint32_t getEntryOffset() const { return EntryOffset; } }; - /// Represents a single accelerator table within the Dwarf 5 .debug_names + /// Represents a single accelerator table within the DWARF v5 .debug_names /// section. class NameIndex { DenseSet Abbrevs; diff --git a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h index 1503a92..28f24ab 100644 --- a/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h +++ b/llvm/include/llvm/DebugInfo/DWARF/DWARFDebugLine.h @@ -244,7 +244,7 @@ public: /// Extracts filename by its index in filename table in prologue. /// In Dwarf 4, the files are 1-indexed and the current compilation file - /// name is not represented in the list. In Dwarf 5, the files are + /// name is not represented in the list. In DWARF v5, the files are /// 0-indexed and the primary source file has the index 0. /// Returns true on success. bool getFileNameByIndex(uint64_t FileIndex, const char *CompDir, diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index 84e13ad..41d9928 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -980,7 +980,7 @@ const llvm::DWARFDebugLine::FileNameEntry & DWARFDebugLine::LineTable::getFileNameEntry(uint64_t Index) const { uint16_t DwarfVersion = Prologue.getVersion(); assert(DwarfVersion != 0 && "LineTable has no dwarf version information"); - // Unlike previous versions, in Dwarf 5 the file names is 0-indexed. + // In DWARF v5 the file names are 0-indexed. if (DwarfVersion >= 5) return Prologue.FileNames[Index]; else -- 2.7.4