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

Commit 6796078

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@239117 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 196340c commit 6796078

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

include/llvm/MC/MCMachObjectWriter.h

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MCMachObjectTargetWriter {
4343
/// \name Lifetime Management
4444
/// @{
4545

46-
virtual void reset() {};
46+
virtual void reset(){};
4747

4848
/// @}
4949

@@ -72,8 +72,7 @@ class MCMachObjectTargetWriter {
7272
};
7373

7474
class MachObjectWriter : public MCObjectWriter {
75-
/// MachSymbolData - Helper struct for containing some precomputed information
76-
/// on symbols.
75+
/// Helper struct for containing some precomputed information on symbols.
7776
struct MachSymbolData {
7877
const MCSymbol *Symbol;
7978
uint64_t StringIndex;
@@ -163,12 +162,11 @@ class MachObjectWriter : public MCObjectWriter {
163162
void WriteHeader(unsigned NumLoadCommands, unsigned LoadCommandsSize,
164163
bool SubsectionsViaSymbols);
165164

166-
/// WriteSegmentLoadCommand - Write a segment load command.
165+
/// Write a segment load command.
167166
///
168167
/// \param NumSections The number of sections in this segment.
169168
/// \param SectionDataSize The total size of the sections.
170-
void WriteSegmentLoadCommand(unsigned NumSections,
171-
uint64_t VMSize,
169+
void WriteSegmentLoadCommand(unsigned NumSections, uint64_t VMSize,
172170
uint64_t SectionDataStartOffset,
173171
uint64_t SectionDataSize);
174172

@@ -180,14 +178,11 @@ class MachObjectWriter : public MCObjectWriter {
180178
uint32_t StringTableOffset,
181179
uint32_t StringTableSize);
182180

183-
void WriteDysymtabLoadCommand(uint32_t FirstLocalSymbol,
184-
uint32_t NumLocalSymbols,
185-
uint32_t FirstExternalSymbol,
186-
uint32_t NumExternalSymbols,
187-
uint32_t FirstUndefinedSymbol,
188-
uint32_t NumUndefinedSymbols,
189-
uint32_t IndirectSymbolOffset,
190-
uint32_t NumIndirectSymbols);
181+
void WriteDysymtabLoadCommand(
182+
uint32_t FirstLocalSymbol, uint32_t NumLocalSymbols,
183+
uint32_t FirstExternalSymbol, uint32_t NumExternalSymbols,
184+
uint32_t FirstUndefinedSymbol, uint32_t NumUndefinedSymbols,
185+
uint32_t IndirectSymbolOffset, uint32_t NumIndirectSymbols);
191186

192187
void WriteNlist(MachSymbolData &MSD, const MCAsmLayout &Layout);
193188

@@ -225,14 +220,11 @@ class MachObjectWriter : public MCObjectWriter {
225220
const MCAsmLayout &Layout,
226221
const MCFragment *Fragment,
227222
const MCFixup &Fixup, MCValue Target,
228-
unsigned Log2Size,
229-
uint64_t &FixedValue);
223+
unsigned Log2Size, uint64_t &FixedValue);
230224

231-
void RecordTLVPRelocation(const MCAssembler &Asm,
232-
const MCAsmLayout &Layout,
233-
const MCFragment *Fragment,
234-
const MCFixup &Fixup, MCValue Target,
235-
uint64_t &FixedValue);
225+
void RecordTLVPRelocation(const MCAssembler &Asm, const MCAsmLayout &Layout,
226+
const MCFragment *Fragment, const MCFixup &Fixup,
227+
MCValue Target, uint64_t &FixedValue);
236228

237229
void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout,
238230
const MCFragment *Fragment, const MCFixup &Fixup,
@@ -241,8 +233,7 @@ class MachObjectWriter : public MCObjectWriter {
241233

242234
void BindIndirectSymbols(MCAssembler &Asm);
243235

244-
/// ComputeSymbolTable - Compute the symbol table data
245-
///
236+
/// Compute the symbol table data.
246237
void ComputeSymbolTable(MCAssembler &Asm,
247238
std::vector<MachSymbolData> &LocalSymbolData,
248239
std::vector<MachSymbolData> &ExternalSymbolData,
@@ -262,8 +253,7 @@ class MachObjectWriter : public MCObjectWriter {
262253
void writeObject(MCAssembler &Asm, const MCAsmLayout &Layout) override;
263254
};
264255

265-
266-
/// \brief Construct a new Mach-O writer instance.
256+
/// Construct a new Mach-O writer instance.
267257
///
268258
/// This routine takes ownership of the target writer subclass.
269259
///

0 commit comments

Comments
 (0)