https://github.com/efriedma-quic commented:
Can we do the following instead? Or are there some transitive includes? ``` diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index fe1454026f56..303f69326eb8 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -20,7 +20,6 @@ #include "llvm/ADT/StringSwitch.h" #include "llvm/Analysis/GlobalsModRef.h" #include "llvm/Analysis/RuntimeLibcallInfo.h" -#include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/Analysis/TargetTransformInfo.h" #include "llvm/BinaryFormat/ELF.h" #include "llvm/Bitcode/BitcodeReader.h" diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index eec4d9e714ab..ed463c6fd399 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -56,7 +56,6 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" -#include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/BinaryFormat/ELF.h" #include "llvm/IR/AttributeMask.h" #include "llvm/IR/CallingConv.h" ``` https://github.com/llvm/llvm-project/pull/236186 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
