This is an archive of the discontinued LLVM Phabricator instance.

[bazel] Move MC header usage from Support to tblgen
ClosedPublic

Authored by rnk on Oct 14 2021, 1:37 PM.

Details

Summary

After the TargetRegistry.h move, nothing in Support includes headers
from MC. However, files in tablegen use MC headers, so we must add an
entry for them in tblgen srcs.

Diff Detail

Event Timeline

rnk requested review of this revision.Oct 14 2021, 1:37 PM
rnk created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 14 2021, 1:37 PM
GMNGeoffrey accepted this revision.Oct 14 2021, 1:50 PM

A step in the right direction, thanks!

utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
455

Can you note that this is a layering violation and we can't depend on MC because it creates circular dependencies?

This revision is now accepted and ready to land.Oct 14 2021, 1:50 PM
rnk updated this revision to Diff 379833.Oct 14 2021, 1:52 PM
  • elaborate
This revision was landed with ongoing or failed builds.Oct 14 2021, 1:53 PM
This revision was automatically updated to reflect the committed changes.