]> granicus.if.org Git - llvm/commitdiff
s/Dwarf 5/DWARF v5/ NFC
authorFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 13:41:19 +0000 (13:41 +0000)
committerFangrui Song <maskray@google.com>
Fri, 26 Apr 2019 13:41:19 +0000 (13:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359307 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
lib/DebugInfo/DWARF/DWARFDebugLine.cpp

index ed06e1edeb858fd3b8a6c44465d63313f63823e1..303375703d2ee6b3a438ff4270846dccb3f74695 100644 (file)
@@ -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<Abbrev, AbbrevMapInfo> Abbrevs;
index 1503a923ea40324bafc08e7bfa701ff4697fee53..28f24ab6b7e339a0b91c0330a2a008bcbac69b09 100644 (file)
@@ -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,
index 84e13adbef6f9c376086325acde5561f209bd101..41d9928d72fb42ff82474d38b676e40660bdf682 100644 (file)
@@ -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