s/Dwarf 5/DWARF v5/ NFC

llvm-svn: 359307
This commit is contained in:
Fangrui Song 2019-04-26 13:41:19 +00:00
parent 8224bc081c
commit 3153764c88
3 changed files with 6 additions and 6 deletions

View 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;

View 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,

View 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