Skip to content

Commit be19aee

Browse files
committed
[DWARFLinker] Prefix debug section names with '.' in the comments. NFC.
In DWARFLinker.h, some comments prefix the debug section names with '.' while others do not. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D108519
1 parent a233f03 commit be19aee

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

llvm/include/llvm/DWARFLinker/DWARFLinker.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class AddressesMap {
8080
CompileUnit::DIEInfo &Info) = 0;
8181

8282
/// Apply the valid relocations to the buffer \p Data, taking into
83-
/// account that Data is at \p BaseOffset in the debug_info section.
83+
/// account that Data is at \p BaseOffset in the .debug_info section.
8484
///
8585
/// \returns true whether any reloc has been applied.
8686
virtual bool applyValidRelocs(MutableArrayRef<char> Data, uint64_t BaseOffset,
@@ -109,7 +109,7 @@ class DwarfEmitter {
109109
/// Emit section named SecName with data SecData.
110110
virtual void emitSectionContents(StringRef SecData, StringRef SecName) = 0;
111111

112-
/// Emit the abbreviation table \p Abbrevs to the debug_abbrev section.
112+
/// Emit the abbreviation table \p Abbrevs to the .debug_abbrev section.
113113
virtual void
114114
emitAbbrevs(const std::vector<std::unique_ptr<DIEAbbrev>> &Abbrevs,
115115
unsigned DwarfVersion) = 0;
@@ -137,25 +137,25 @@ class DwarfEmitter {
137137
virtual void
138138
emitAppleTypes(AccelTable<AppleAccelTableStaticTypeData> &Table) = 0;
139139

140-
/// Emit debug_ranges for \p FuncRange by translating the
140+
/// Emit .debug_ranges for \p FuncRange by translating the
141141
/// original \p Entries.
142142
virtual void emitRangesEntries(
143143
int64_t UnitPcOffset, uint64_t OrigLowPc,
144144
const FunctionIntervals::const_iterator &FuncRange,
145145
const std::vector<DWARFDebugRangeList::RangeListEntry> &Entries,
146146
unsigned AddressSize) = 0;
147147

148-
/// Emit debug_aranges entries for \p Unit and if \p DoRangesSection is true,
149-
/// also emit the debug_ranges entries for the DW_TAG_compile_unit's
148+
/// Emit .debug_aranges entries for \p Unit and if \p DoRangesSection is true,
149+
/// also emit the .debug_ranges entries for the DW_TAG_compile_unit's
150150
/// DW_AT_ranges attribute.
151151
virtual void emitUnitRangesEntries(CompileUnit &Unit,
152152
bool DoRangesSection) = 0;
153153

154-
/// Copy the debug_line over to the updated binary while unobfuscating the
154+
/// Copy the .debug_line over to the updated binary while unobfuscating the
155155
/// file names and directories.
156156
virtual void translateLineTable(DataExtractor LineData, uint64_t Offset) = 0;
157157

158-
/// Emit the line table described in \p Rows into the debug_line section.
158+
/// Emit the line table described in \p Rows into the .debug_line section.
159159
virtual void emitLineTableForUnit(MCDwarfLineTableParams Params,
160160
StringRef PrologueBytes,
161161
unsigned MinInstLength,
@@ -175,7 +175,7 @@ class DwarfEmitter {
175175
virtual void emitFDE(uint32_t CIEOffset, uint32_t AddreSize, uint32_t Address,
176176
StringRef Bytes) = 0;
177177

178-
/// Emit the debug_loc contribution for \p Unit by copying the entries from
178+
/// Emit the .debug_loc contribution for \p Unit by copying the entries from
179179
/// \p Dwarf and offsetting them. Update the location attributes to point to
180180
/// the new entries.
181181
virtual void emitLocationsForUnit(
@@ -184,7 +184,7 @@ class DwarfEmitter {
184184
ProcessExpr) = 0;
185185

186186
/// Emit the compilation unit header for \p Unit in the
187-
/// debug_info section.
187+
/// .debug_info section.
188188
///
189189
/// As a side effect, this also switches the current Dwarf version
190190
/// of the MC layer to the one of U.getOrigUnit().
@@ -695,7 +695,7 @@ class DWARFLinker {
695695
/// Assign an abbreviation number to \p Abbrev
696696
void assignAbbrev(DIEAbbrev &Abbrev);
697697

698-
/// Compute and emit debug_ranges section for \p Unit, and
698+
/// Compute and emit .debug_ranges section for \p Unit, and
699699
/// patch the attributes referencing it.
700700
void patchRangesForUnit(const CompileUnit &Unit, DWARFContext &Dwarf,
701701
const DWARFFile &File) const;
@@ -706,7 +706,7 @@ class DWARFLinker {
706706

707707
/// Extract the line tables from the original dwarf, extract the relevant
708708
/// parts according to the linked function ranges and emit the result in the
709-
/// debug_line section.
709+
/// .debug_line section.
710710
void patchLineTableForUnit(CompileUnit &Unit, DWARFContext &OrigDwarf,
711711
const DWARFFile &File);
712712

@@ -753,7 +753,7 @@ class DWARFLinker {
753753
StringMap<uint32_t> EmittedCIEs;
754754

755755
/// Offset of the last CIE that has been emitted in the output
756-
/// debug_frame section.
756+
/// .debug_frame section.
757757
uint32_t LastCIEOffset = 0;
758758

759759
/// Apple accelerator tables.

0 commit comments

Comments
 (0)