forked from OSchip/llvm-project
parent
8224bc081c
commit
3153764c88
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue