Skip to content

Commit fae4409

Browse files
committed
Attempt to work around type checking error on older compilers
1 parent 254ecfb commit fae4409

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/tools/obj2yaml/macho2yaml.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MachODumper {
2929

3030
const object::MachOObjectFile &Obj;
3131
std::unique_ptr<DWARFContext> DWARFCtx;
32-
unsigned RawSegments;
32+
unsigned RawSegment;
3333
void dumpHeader(std::unique_ptr<MachOYAML::Object> &Y);
3434
Error dumpLoadCommands(std::unique_ptr<MachOYAML::Object> &Y);
3535
void dumpLinkEdit(std::unique_ptr<MachOYAML::Object> &Y);
@@ -54,7 +54,7 @@ class MachODumper {
5454
public:
5555
MachODumper(const object::MachOObjectFile &O,
5656
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) {}
5858
Expected<std::unique_ptr<MachOYAML::Object>> dump();
5959
};
6060

@@ -179,7 +179,7 @@ Expected<const char *> MachODumper::extractSections(
179179
StringRef SecName(S->sectname);
180180

181181
// Copy data sections if requested.
182-
if ((RawSegments & RawSegments::data) &&
182+
if ((RawSegment & ::RawSegments::data) &&
183183
StringRef(S->segname).startswith("__DATA"))
184184
S->content =
185185
yaml::BinaryRef(Obj.getSectionContents(Sec.offset, Sec.size));
@@ -290,7 +290,7 @@ Expected<std::unique_ptr<MachOYAML::Object>> MachODumper::dump() {
290290
dumpHeader(Y);
291291
if (Error Err = dumpLoadCommands(Y))
292292
return std::move(Err);
293-
if (RawSegments & RawSegments::linkedit)
293+
if (RawSegment & ::RawSegments::linkedit)
294294
Y->RawLinkEditSegment =
295295
yaml::BinaryRef(Obj.getSegmentContents("__LINKEDIT"));
296296
else

0 commit comments

Comments
 (0)