Commit d2d531e
authored
[clang][Serialization] Stop including Frontend headers from Serialization (NFC) (llvm#123140)
The Frontend library depends on Serialization. This is an explicit
dependency encoded in the CMake target. However, Serialization currently
has an implicit dependency on Frontend, as it includes one of its
headers. This is not reflected in the CMake build rules, but Bazel is
stricter so, in order to avoid a dependency cycle, it hackily declares
the Frontend headers as source files for Serialization.
Fortunately, the only Frontend header used by Serialization is
clang/Frontend/FrontendDiagnostic.h, which is a legacy header that just
includes clang/Basic/DiagnosticFrontend since
d076608, back in 2018.
This commit changes Serialization to use the underlying header from
Basic instead. Both Serialization and Frontend depend on Basic, so this
breaks the dependency cycle.1 parent a0406ce commit d2d531e
File tree
2 files changed
+1
-6
lines changed- clang/lib/Serialization
- utils/bazel/llvm-project-overlay/clang
2 files changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2148 | 2148 | | |
2149 | 2149 | | |
2150 | 2150 | | |
2151 | | - | |
2152 | 2151 | | |
2153 | 2152 | | |
2154 | 2153 | | |
| |||
2160 | 2159 | | |
2161 | 2160 | | |
2162 | 2161 | | |
2163 | | - | |
2164 | 2162 | | |
2165 | 2163 | | |
2166 | | - | |
2167 | 2164 | | |
2168 | 2165 | | |
2169 | 2166 | | |
2170 | | - | |
2171 | | - | |
2172 | 2167 | | |
2173 | 2168 | | |
2174 | 2169 | | |
| |||
0 commit comments