HomePhabricator

[clang] Make libBasic not depend on MC

Authored by thakis on Apr 20 2021, 7:58 AM.

Description

[clang] Make libBasic not depend on MC

Reduces numbers of files built for clang-format from 575 to 449.

Requires two small changes:

  1. Don't use llvm::ExceptionHandling in LangOptions. This isn't even quite the right type since we don't use all of its values. Tweaks the changes made in:
  1. Move section name validation code added (long ago) in commit 30ba67439 out of libBasic into Sema and base the check on the triple. This is a bit less OOP-y, but completely in line with what we do in many other places in Sema.

No behavior change.

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

Details

Committed
thakisApr 28 2021, 9:16 AM
Differential Revision
D101463: [clang] Make libBasic not depend on MC
Parents
rGd16d820c2e64: [SimplifyCFG] Try 2: sink all-indirect indirect calls
Branches
Unknown
Tags
Unknown