This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Move ARM::parseBranchProtection into ARMTargetParserCommon
ClosedPublic

Authored by lenary on Nov 11 2022, 6:39 AM.

Details

Summary

This should live with the Arm targets, given they have target-specific
target parsers.

Diff Detail

Event Timeline

lenary created this revision.Nov 11 2022, 6:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2022, 6:39 AM
lenary requested review of this revision.Nov 11 2022, 6:39 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 11 2022, 6:39 AM
tmatheson accepted this revision.Nov 11 2022, 8:03 AM
tmatheson added a subscriber: tmatheson.
tmatheson added inline comments.
clang/lib/Driver/ToolChains/Clang.cpp
47

For consistency this could just come via ARM.h

This revision is now accepted and ready to land.Nov 11 2022, 8:03 AM

I'm going to move this into the newly created ARMTargetParserCommon files which @tmatheson created in https://reviews.llvm.org/D137924 (which has landed).

lenary updated this revision to Diff 475860.Nov 16 2022, 10:08 AM
lenary retitled this revision from [ARM] Move ARM::parseBranchProtection into ARMTargetParser to [ARM] Move ARM::parseBranchProtection into ARMTargetParserCommon.
lenary edited the summary of this revision. (Show Details)
lenary marked an inline comment as done.Nov 16 2022, 10:11 AM
lenary added inline comments.
clang/lib/Driver/ToolChains/Clang.cpp
47

Not any more! Those two headers don't need ARMTargetParserCommon.h so I moved their use into the implementation file, and now this is much better at avoiding transitive includes.

tmatheson accepted this revision.Nov 16 2022, 10:34 AM
MaskRay accepted this revision.Nov 16 2022, 1:59 PM
fpetrogalli accepted this revision.Nov 22 2022, 1:33 AM
lenary updated this revision to Diff 477904.Nov 25 2022, 3:22 AM
lenary marked an inline comment as done.
This revision was landed with ongoing or failed builds.Nov 25 2022, 3:34 AM
This revision was automatically updated to reflect the committed changes.