Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 71c4d5d

Browse files
author
Jim Grosbach
committed
MC: Tidy up formatting and doc comments. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239120 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent eafe465 commit 71c4d5d

File tree

1 file changed

+39
-51
lines changed

1 file changed

+39
-51
lines changed

include/llvm/MC/MCObjectFileInfo.h

Lines changed: 39 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,25 @@
1818
#include "llvm/Support/CodeGen.h"
1919

2020
namespace llvm {
21-
class MCContext;
22-
class MCSection;
23-
class StringRef;
21+
class MCContext;
22+
class MCSection;
23+
class StringRef;
2424

2525
class MCObjectFileInfo {
2626
protected:
27-
/// CommDirectiveSupportsAlignment - True if .comm supports alignment. This
28-
/// is a hack for as long as we support 10.4 Tiger, whose assembler doesn't
29-
/// support alignment on comm.
27+
/// True if .comm supports alignment. This is a hack for as long as we
28+
/// support 10.4 Tiger, whose assembler doesn't support alignment on comm.
3029
bool CommDirectiveSupportsAlignment;
3130

32-
/// SupportsWeakEmptyEHFrame - True if target object file supports a
33-
/// weak_definition of constant 0 for an omitted EH frame.
31+
/// True if target object file supports a weak_definition of constant 0 for an
32+
/// omitted EH frame.
3433
bool SupportsWeakOmittedEHFrame;
3534

36-
/// SupportsCompactUnwindWithoutEHFrame - True if the target object file
37-
/// supports emitting a compact unwind section without an associated EH frame
38-
/// section.
35+
/// True if the target object file supports emitting a compact unwind section
36+
/// without an associated EH frame section.
3937
bool SupportsCompactUnwindWithoutEHFrame;
4038

41-
/// PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values
42-
/// for EH.
39+
/// Some encoding values for EH.
4340
unsigned PersonalityEncoding;
4441
unsigned LSDAEncoding;
4542
unsigned FDECFIEncoding;
@@ -49,16 +46,13 @@ class MCObjectFileInfo {
4946
unsigned EHSectionType;
5047
unsigned EHSectionFlags;
5148

52-
/// CompactUnwindDwarfEHFrameOnly - Compact unwind encoding indicating that we
53-
/// should emit only an EH frame.
49+
/// Compact unwind encoding indicating that we should emit only an EH frame.
5450
unsigned CompactUnwindDwarfEHFrameOnly;
5551

5652
/// Section directive for standard text.
57-
///
5853
MCSection *TextSection;
5954

6055
/// Section directive for standard data.
61-
///
6256
MCSection *DataSection;
6357

6458
/// Section that is default initialized to zero.
@@ -101,7 +95,7 @@ class MCObjectFileInfo {
10195
// can be enabled by a compiler flag.
10296
MCSection *DwarfPubNamesSection;
10397

104-
// DWARF5 Experimental Debug Info Sections
98+
/// DWARF5 Experimental Debug Info Sections
10599
/// DwarfAccelNamesSection, DwarfAccelObjCSection,
106100
/// DwarfAccelNamespaceSection, DwarfAccelTypesSection -
107101
/// If we use the DWARF accelerated hash tables then we want to emit these
@@ -111,7 +105,7 @@ class MCObjectFileInfo {
111105
MCSection *DwarfAccelNamespaceSection;
112106
MCSection *DwarfAccelTypesSection;
113107

114-
/// These are used for the Fission separate debug information files.
108+
// These are used for the Fission separate debug information files.
115109
MCSection *DwarfInfoDWOSection;
116110
MCSection *DwarfTypesDWOSection;
117111
MCSection *DwarfAbbrevDWOSection;
@@ -121,32 +115,36 @@ class MCObjectFileInfo {
121115
MCSection *DwarfStrOffDWOSection;
122116
MCSection *DwarfAddrSection;
123117

124-
/// Sections for newer gnu pubnames and pubtypes.
118+
/// Section for newer gnu pubnames.
125119
MCSection *DwarfGnuPubNamesSection;
120+
/// Section for newer gnu pubtypes.
126121
MCSection *DwarfGnuPubTypesSection;
127122

128123
MCSection *COFFDebugSymbolsSection;
129124

130-
// Extra TLS Variable Data section. If the target needs to put additional
131-
// information for a TLS variable, it'll go here.
125+
/// Extra TLS Variable Data section.
126+
///
127+
/// If the target needs to put additional information for a TLS variable,
128+
/// it'll go here.
132129
MCSection *TLSExtraDataSection;
133130

134131
/// Section directive for Thread Local data. ELF, MachO and COFF.
135132
MCSection *TLSDataSection; // Defaults to ".tdata".
136133

137-
/// Section directive for Thread Local uninitialized data. Null if this target
138-
/// doesn't support a BSS section. ELF and MachO only.
134+
/// Section directive for Thread Local uninitialized data.
135+
///
136+
/// Null if this target doesn't support a BSS section. ELF and MachO only.
139137
MCSection *TLSBSSSection; // Defaults to ".tbss".
140138

141139
/// StackMap section.
142140
MCSection *StackMapSection;
143141

144-
/// EH frame section. It is initialized on demand so it can be overwritten
145-
/// (with uniquing).
142+
/// EH frame section.
143+
///
144+
/// It is initialized on demand so it can be overwritten (with uniquing).
146145
MCSection *EHFrameSection;
147146

148-
/// ELF specific sections.
149-
///
147+
// ELF specific sections.
150148
MCSection *DataRelSection;
151149
const MCSection *DataRelLocalSection;
152150
MCSection *DataRelROSection;
@@ -155,17 +153,16 @@ class MCObjectFileInfo {
155153
MCSection *MergeableConst8Section;
156154
MCSection *MergeableConst16Section;
157155

158-
/// MachO specific sections.
159-
///
156+
// MachO specific sections.
160157

161-
/// Section for thread local structure information. Contains the source code
162-
/// name of the variable, visibility and a pointer to the initial value
163-
/// (.tdata or .tbss).
158+
/// Section for thread local structure information.
159+
///
160+
/// Contains the source code name of the variable, visibility and a pointer to
161+
/// the initial value (.tdata or .tbss).
164162
MCSection *TLSTLVSection; // Defaults to ".tlv".
165163

166-
/// TLSThreadInitSection - Section for thread local data initialization
167-
/// functions.
168-
const MCSection *TLSThreadInitSection; // Defaults to ".thread_init_func".
164+
/// Section for thread local data initialization functions.
165+
const MCSection *TLSThreadInitSection; // Defaults to ".thread_init_func".
169166

170167
MCSection *CStringSection;
171168
MCSection *UStringSection;
@@ -182,7 +179,6 @@ class MCObjectFileInfo {
182179
MCSection *NonLazySymbolPointerSection;
183180

184181
/// COFF specific sections.
185-
///
186182
MCSection *DrectveSection;
187183
MCSection *PDataSection;
188184
MCSection *XDataSection;
@@ -267,8 +263,7 @@ class MCObjectFileInfo {
267263

268264
MCSection *getStackMapSection() const { return StackMapSection; }
269265

270-
/// ELF specific sections.
271-
///
266+
// ELF specific sections.
272267
MCSection *getDataRelSection() const { return DataRelSection; }
273268
const MCSection *getDataRelLocalSection() const {
274269
return DataRelLocalSection;
@@ -285,8 +280,7 @@ class MCObjectFileInfo {
285280
return MergeableConst16Section;
286281
}
287282

288-
/// MachO specific sections.
289-
///
283+
// MachO specific sections.
290284
const MCSection *getTLSTLVSection() const { return TLSTLVSection; }
291285
const MCSection *getTLSThreadInitSection() const {
292286
return TLSThreadInitSection;
@@ -317,8 +311,7 @@ class MCObjectFileInfo {
317311
return NonLazySymbolPointerSection;
318312
}
319313

320-
/// COFF specific sections.
321-
///
314+
// COFF specific sections.
322315
MCSection *getDrectveSection() const { return DrectveSection; }
323316
MCSection *getPDataSection() const { return PDataSection; }
324317
MCSection *getXDataSection() const { return XDataSection; }
@@ -331,13 +324,9 @@ class MCObjectFileInfo {
331324
}
332325

333326
enum Environment { IsMachO, IsELF, IsCOFF };
334-
Environment getObjectFileType() const {
335-
return Env;
336-
}
327+
Environment getObjectFileType() const { return Env; }
337328

338-
Reloc::Model getRelocM() const {
339-
return RelocM;
340-
}
329+
Reloc::Model getRelocM() const { return RelocM; }
341330

342331
private:
343332
Environment Env;
@@ -350,8 +339,7 @@ class MCObjectFileInfo {
350339
void InitELFMCObjectFileInfo(Triple T);
351340
void InitCOFFMCObjectFileInfo(Triple T);
352341

353-
/// InitEHFrameSection - Initialize EHFrameSection on demand.
354-
///
342+
/// Initialize EHFrameSection on demand.
355343
void InitEHFrameSection();
356344

357345
public:

0 commit comments

Comments
 (0)