HomePhabricator

Move TargetRegistry.(h|cpp) from Support to MC

Authored by rnk on Oct 8 2021, 10:48 AM.

Description

Move TargetRegistry.(h|cpp) from Support to MC

This moves the registry higher in the LLVM library dependency stack.
Every client of the target registry needs to link against MC anyway to
actually use the target, so we might as well move this out of Support.

This allows us to ensure that Support doesn't have includes from MC/*.

Differential Revision: https://reviews.llvm.org/D111454