This is an archive of the discontinued LLVM Phabricator instance.

[polly][NFC] removes using-directives to fix modules build
ClosedPublic

Authored by cjdb on Feb 14 2022, 10:59 PM.

Details

Summary

When compiling with Clang modules enabled, polly's use of using-directives
caused the global object Target in RegisterPasses.cpp to clash with
llvm::Target. By eliminating the using-directives, we're able to get
polly to play nicely with a modules build.

Diff Detail

Event Timeline

cjdb created this revision.Feb 14 2022, 10:59 PM
cjdb requested review of this revision.Feb 14 2022, 10:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 14 2022, 10:59 PM
cjdb updated this revision to Diff 408725.Feb 14 2022, 11:51 PM

creates namespace alias

cjdb updated this revision to Diff 408735.Feb 15 2022, 12:29 AM
  • qualifies things that weren't caught by the modules build
  • adds using-declarations for some of the more commonly used types so that they don't need to be qualified
cjdb updated this revision to Diff 408934.Feb 15 2022, 9:43 AM

qualifies something that Clang missed, but MSVC caught

Meinersbur accepted this revision.Feb 15 2022, 9:47 AM
Meinersbur added a subscriber: Meinersbur.

LGTM

This revision is now accepted and ready to land.Feb 15 2022, 9:47 AM
This revision was automatically updated to reflect the committed changes.