[all-commits] [llvm/llvm-project] 671f0e: [clang] Make libBasic not depend on MC
Nico Weber via All-commits
all-commits at lists.llvm.org
Wed Apr 28 09:16:55 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 671f0e2e189c561512511331d95de382e2d6d15d
https://github.com/llvm/llvm-project/commit/671f0e2e189c561512511331d95de382e2d6d15d
Author: Nico Weber <thakis at chromium.org>
Date: 2021-04-28 (Wed, 28 Apr 2021)
Changed paths:
M clang/include/clang/Basic/DiagnosticFrontendKinds.td
M clang/include/clang/Basic/LangOptions.h
M clang/include/clang/Basic/TargetInfo.h
M clang/include/clang/Driver/Options.td
M clang/include/clang/Sema/Sema.h
M clang/lib/Basic/CMakeLists.txt
M clang/lib/Basic/Targets/OSTargets.h
M clang/lib/Frontend/CompilerInvocation.cpp
M clang/lib/Sema/CMakeLists.txt
M clang/lib/Sema/SemaAttr.cpp
M clang/lib/Sema/SemaDeclAttr.cpp
M llvm/utils/gn/secondary/clang/lib/Basic/BUILD.gn
M llvm/utils/gn/secondary/clang/lib/Sema/BUILD.gn
M llvm/utils/gn/secondary/clang/tools/clang-format/BUILD.gn
Log Message:
-----------
[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:
- https://reviews.llvm.org/D93215
- https://reviews.llvm.org/D93216
2. 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
More information about the All-commits
mailing list