From b48e3782182639d4e59624290f166a84e53300bb Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 26 Jan 2022 08:02:49 -0500 Subject: Cleanup LLVMTextAPI headers Based on the output of iwyu. A full rebuild of llvm-project doesn't exhibit any significant false dependencies. The impact on preprocessed output is larger than expected, given the small amount of changes $ clang++ -E -Iinclude -I../llvm/include ../llvm/lib/TextAPI/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l before: 635319 After: 643716 Discourse thread on the topic: https://llvm.discourse.group/t/include-what-you-use-include-cleanup --- llvm/lib/TextAPI/Target.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/TextAPI/Target.cpp') diff --git a/llvm/lib/TextAPI/Target.cpp b/llvm/lib/TextAPI/Target.cpp index feeb5c671a9c..c54c3bd66b9d 100644 --- a/llvm/lib/TextAPI/Target.cpp +++ b/llvm/lib/TextAPI/Target.cpp @@ -7,11 +7,8 @@ //===----------------------------------------------------------------------===// #include "llvm/TextAPI/Target.h" -#include "llvm/ADT/SmallString.h" -#include "llvm/ADT/SmallVector.h" -#include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringSwitch.h" -#include "llvm/Support/Format.h" +#include "llvm/ADT/Twine.h" #include "llvm/Support/raw_ostream.h" namespace llvm { -- cgit v1.2.3