@@ -29,7 +29,7 @@ class MachODumper {
29
29
30
30
const object::MachOObjectFile &Obj;
31
31
std::unique_ptr<DWARFContext> DWARFCtx;
32
- unsigned RawSegments ;
32
+ unsigned RawSegment ;
33
33
void dumpHeader (std::unique_ptr<MachOYAML::Object> &Y);
34
34
Error dumpLoadCommands (std::unique_ptr<MachOYAML::Object> &Y);
35
35
void dumpLinkEdit (std::unique_ptr<MachOYAML::Object> &Y);
@@ -54,7 +54,7 @@ class MachODumper {
54
54
public:
55
55
MachODumper (const object::MachOObjectFile &O,
56
56
std::unique_ptr<DWARFContext> DCtx, unsigned RawSegments)
57
- : Obj(O), DWARFCtx(std::move(DCtx)), RawSegments (RawSegments) {}
57
+ : Obj(O), DWARFCtx(std::move(DCtx)), RawSegment (RawSegments) {}
58
58
Expected<std::unique_ptr<MachOYAML::Object>> dump ();
59
59
};
60
60
@@ -179,7 +179,7 @@ Expected<const char *> MachODumper::extractSections(
179
179
StringRef SecName (S->sectname );
180
180
181
181
// Copy data sections if requested.
182
- if ((RawSegments & RawSegments::data) &&
182
+ if ((RawSegment & :: RawSegments::data) &&
183
183
StringRef (S->segname ).startswith (" __DATA" ))
184
184
S->content =
185
185
yaml::BinaryRef (Obj.getSectionContents (Sec.offset , Sec.size ));
@@ -290,7 +290,7 @@ Expected<std::unique_ptr<MachOYAML::Object>> MachODumper::dump() {
290
290
dumpHeader (Y);
291
291
if (Error Err = dumpLoadCommands (Y))
292
292
return std::move (Err);
293
- if (RawSegments & RawSegments::linkedit)
293
+ if (RawSegment & :: RawSegments::linkedit)
294
294
Y->RawLinkEditSegment =
295
295
yaml::BinaryRef (Obj.getSegmentContents (" __LINKEDIT" ));
296
296
else
0 commit comments