This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Prepare for new includes
AbandonedPublic

Authored by scott.linder on Jan 24 2023, 12:49 PM.

Details

Summary

Prepatch for D141970 which makes bare Reloc ambiguous (both
llvm::Reloc and macho::Reloc are visible).

Diff Detail

Event Timeline

scott.linder created this revision.Jan 24 2023, 12:49 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 24 2023, 12:49 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
scott.linder requested review of this revision.Jan 24 2023, 12:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2023, 12:49 PM
int3 requested changes to this revision.Jan 24 2023, 4:34 PM
int3 added a subscriber: int3.

I intentionally avoided including Codegen.h for this reason. Can we use forward declarations instead?

This revision now requires changes to proceed.Jan 24 2023, 4:34 PM

I intentionally avoided including Codegen.h for this reason. Can we use forward declarations instead?

I didn't think so, but I wasn't certain why; I double checked and realized the prohibition on forward declaring enums only applies when the underlying type is not specified (i.e. the size isn't known).

I'll fix it tomorrow and drop this review; thank you for getting me to check again!

scott.linder abandoned this revision.Jan 25 2023, 11:41 AM