@@ -43,7 +43,7 @@ class MCMachObjectTargetWriter {
43
43
// / \name Lifetime Management
44
44
// / @{
45
45
46
- virtual void reset () {};
46
+ virtual void reset (){};
47
47
48
48
// / @}
49
49
@@ -72,8 +72,7 @@ class MCMachObjectTargetWriter {
72
72
};
73
73
74
74
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.
77
76
struct MachSymbolData {
78
77
const MCSymbol *Symbol;
79
78
uint64_t StringIndex;
@@ -163,12 +162,11 @@ class MachObjectWriter : public MCObjectWriter {
163
162
void WriteHeader (unsigned NumLoadCommands, unsigned LoadCommandsSize,
164
163
bool SubsectionsViaSymbols);
165
164
166
- // / WriteSegmentLoadCommand - Write a segment load command.
165
+ // / Write a segment load command.
167
166
// /
168
167
// / \param NumSections The number of sections in this segment.
169
168
// / \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,
172
170
uint64_t SectionDataStartOffset,
173
171
uint64_t SectionDataSize);
174
172
@@ -180,14 +178,11 @@ class MachObjectWriter : public MCObjectWriter {
180
178
uint32_t StringTableOffset,
181
179
uint32_t StringTableSize);
182
180
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);
191
186
192
187
void WriteNlist (MachSymbolData &MSD, const MCAsmLayout &Layout);
193
188
@@ -225,14 +220,11 @@ class MachObjectWriter : public MCObjectWriter {
225
220
const MCAsmLayout &Layout,
226
221
const MCFragment *Fragment,
227
222
const MCFixup &Fixup, MCValue Target,
228
- unsigned Log2Size,
229
- uint64_t &FixedValue);
223
+ unsigned Log2Size, uint64_t &FixedValue);
230
224
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);
236
228
237
229
void recordRelocation (MCAssembler &Asm, const MCAsmLayout &Layout,
238
230
const MCFragment *Fragment, const MCFixup &Fixup,
@@ -241,8 +233,7 @@ class MachObjectWriter : public MCObjectWriter {
241
233
242
234
void BindIndirectSymbols (MCAssembler &Asm);
243
235
244
- // / ComputeSymbolTable - Compute the symbol table data
245
- // /
236
+ // / Compute the symbol table data.
246
237
void ComputeSymbolTable (MCAssembler &Asm,
247
238
std::vector<MachSymbolData> &LocalSymbolData,
248
239
std::vector<MachSymbolData> &ExternalSymbolData,
@@ -262,8 +253,7 @@ class MachObjectWriter : public MCObjectWriter {
262
253
void writeObject (MCAssembler &Asm, const MCAsmLayout &Layout) override ;
263
254
};
264
255
265
-
266
- // / \brief Construct a new Mach-O writer instance.
256
+ // / Construct a new Mach-O writer instance.
267
257
// /
268
258
// / This routine takes ownership of the target writer subclass.
269
259
// /
0 commit comments