From d44ea7186befe38eb2b3804b15cd1ee1777458ed Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 20 Nov 2024 06:51:43 -0800 Subject: [PATCH] [Support] Remove unused includes (NFC) (#116752) Identified with misc-include-cleaner. --- llvm/lib/Support/ARMBuildAttrs.cpp | 4 ---- llvm/lib/Support/ConvertUTFWrapper.cpp | 1 - llvm/lib/Support/DAGDeltaAlgorithm.cpp | 1 - llvm/lib/Support/InitLLVM.cpp | 3 --- llvm/lib/Support/LockFileManager.cpp | 1 - llvm/lib/Support/MSP430AttributeParser.cpp | 1 - llvm/lib/Support/MemoryBuffer.cpp | 1 - llvm/lib/Support/NativeFormatting.cpp | 1 - llvm/lib/Support/Path.cpp | 1 - llvm/lib/Support/Process.cpp | 1 - llvm/lib/Support/RWMutex.cpp | 1 - llvm/lib/Support/SuffixTreeNode.cpp | 1 - llvm/lib/Support/Threading.cpp | 2 -- llvm/lib/Support/VirtualFileSystem.cpp | 1 - llvm/lib/Support/YAMLTraits.cpp | 1 - llvm/lib/Support/raw_ostream.cpp | 1 - llvm/lib/Support/raw_socket_stream.cpp | 1 - 17 files changed, 23 deletions(-) diff --git a/llvm/lib/Support/ARMBuildAttrs.cpp b/llvm/lib/Support/ARMBuildAttrs.cpp index 6ff74e02820d..815cfc62a4b0 100644 --- a/llvm/lib/Support/ARMBuildAttrs.cpp +++ b/llvm/lib/Support/ARMBuildAttrs.cpp @@ -7,10 +7,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/ARMBuildAttributes.h" -#include "llvm/ADT/Twine.h" -#include "llvm/Support/LEB128.h" -#include -#include using namespace llvm; diff --git a/llvm/lib/Support/ConvertUTFWrapper.cpp b/llvm/lib/Support/ConvertUTFWrapper.cpp index 3fa7365e72d3..4952fe65d776 100644 --- a/llvm/lib/Support/ConvertUTFWrapper.cpp +++ b/llvm/lib/Support/ConvertUTFWrapper.cpp @@ -10,7 +10,6 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Support/ConvertUTF.h" #include "llvm/Support/ErrorHandling.h" -#include "llvm/Support/SwapByteOrder.h" #include #include diff --git a/llvm/lib/Support/DAGDeltaAlgorithm.cpp b/llvm/lib/Support/DAGDeltaAlgorithm.cpp index f1b730e2b58c..8b23b0591329 100644 --- a/llvm/lib/Support/DAGDeltaAlgorithm.cpp +++ b/llvm/lib/Support/DAGDeltaAlgorithm.cpp @@ -35,7 +35,6 @@ #include "llvm/Support/Debug.h" #include "llvm/Support/Format.h" #include "llvm/Support/raw_ostream.h" -#include #include #include using namespace llvm; diff --git a/llvm/lib/Support/InitLLVM.cpp b/llvm/lib/Support/InitLLVM.cpp index 2b3ddd39b087..eb89f6f8915c 100644 --- a/llvm/lib/Support/InitLLVM.cpp +++ b/llvm/lib/Support/InitLLVM.cpp @@ -8,13 +8,10 @@ #include "llvm/Support/InitLLVM.h" #include "llvm/ADT/StringRef.h" -#include "llvm/Support/AutoConvert.h" #include "llvm/Support/Error.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/PrettyStackTrace.h" #include "llvm/Support/Signals.h" -#include "llvm/Support/SwapByteOrder.h" #ifdef _WIN32 #include "llvm/Support/Windows/WindowsSupport.h" diff --git a/llvm/lib/Support/LockFileManager.cpp b/llvm/lib/Support/LockFileManager.cpp index 4a8dd89b7619..9a45a9966458 100644 --- a/llvm/lib/Support/LockFileManager.cpp +++ b/llvm/lib/Support/LockFileManager.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include #ifdef _WIN32 diff --git a/llvm/lib/Support/MSP430AttributeParser.cpp b/llvm/lib/Support/MSP430AttributeParser.cpp index 27694b8f60f3..bfc69cb2bb3c 100644 --- a/llvm/lib/Support/MSP430AttributeParser.cpp +++ b/llvm/lib/Support/MSP430AttributeParser.cpp @@ -8,7 +8,6 @@ #include "llvm/Support/MSP430AttributeParser.h" #include "llvm/ADT/ArrayRef.h" -#include "llvm/Support/ErrorHandling.h" using namespace llvm; using namespace llvm::MSP430Attrs; diff --git a/llvm/lib/Support/MemoryBuffer.cpp b/llvm/lib/Support/MemoryBuffer.cpp index aea81964ba9f..7ea68ee4cafd 100644 --- a/llvm/lib/Support/MemoryBuffer.cpp +++ b/llvm/lib/Support/MemoryBuffer.cpp @@ -19,7 +19,6 @@ #include "llvm/Support/Error.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FileSystem.h" -#include "llvm/Support/MathExtras.h" #include "llvm/Support/Process.h" #include "llvm/Support/Program.h" #include "llvm/Support/SmallVectorMemoryBuffer.h" diff --git a/llvm/lib/Support/NativeFormatting.cpp b/llvm/lib/Support/NativeFormatting.cpp index 3b9273e1eaad..7a6473043419 100644 --- a/llvm/lib/Support/NativeFormatting.cpp +++ b/llvm/lib/Support/NativeFormatting.cpp @@ -11,7 +11,6 @@ #include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/Format.h" -#include "llvm/Support/MathExtras.h" #include "llvm/Support/raw_ostream.h" #include diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp index 4db9bc80b415..d77528519710 100644 --- a/llvm/lib/Support/Path.cpp +++ b/llvm/lib/Support/Path.cpp @@ -16,7 +16,6 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/Config/config.h" #include "llvm/Config/llvm-config.h" -#include "llvm/Support/Endian.h" #include "llvm/Support/Errc.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/FileSystem.h" diff --git a/llvm/lib/Support/Process.cpp b/llvm/lib/Support/Process.cpp index 54462f23c842..57bcc2d116da 100644 --- a/llvm/lib/Support/Process.cpp +++ b/llvm/lib/Support/Process.cpp @@ -18,7 +18,6 @@ #include "llvm/Support/CrashRecoveryContext.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" -#include "llvm/Support/Program.h" #include #include // for _Exit diff --git a/llvm/lib/Support/RWMutex.cpp b/llvm/lib/Support/RWMutex.cpp index 4294c4356f47..83adef5bcd97 100644 --- a/llvm/lib/Support/RWMutex.cpp +++ b/llvm/lib/Support/RWMutex.cpp @@ -13,7 +13,6 @@ #include "llvm/Support/RWMutex.h" #include "llvm/Config/config.h" #include "llvm/Config/llvm-config.h" // for LLVM_ENABLE_THREADS -#include "llvm/Support/Allocator.h" #if defined(LLVM_USE_RW_MUTEX_IMPL) using namespace llvm; diff --git a/llvm/lib/Support/SuffixTreeNode.cpp b/llvm/lib/Support/SuffixTreeNode.cpp index 9f1f94a39895..dee8c5816b8b 100644 --- a/llvm/lib/Support/SuffixTreeNode.cpp +++ b/llvm/lib/Support/SuffixTreeNode.cpp @@ -12,7 +12,6 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/SuffixTreeNode.h" -#include "llvm/Support/Casting.h" using namespace llvm; diff --git a/llvm/lib/Support/Threading.cpp b/llvm/lib/Support/Threading.cpp index 7cc7ba44cc72..693de0e6400f 100644 --- a/llvm/lib/Support/Threading.cpp +++ b/llvm/lib/Support/Threading.cpp @@ -16,10 +16,8 @@ #include "llvm/Config/llvm-config.h" #include -#include #include #include -#include using namespace llvm; diff --git a/llvm/lib/Support/VirtualFileSystem.cpp b/llvm/lib/Support/VirtualFileSystem.cpp index b3cdaa3eefc9..5febdf992fbf 100644 --- a/llvm/lib/Support/VirtualFileSystem.cpp +++ b/llvm/lib/Support/VirtualFileSystem.cpp @@ -37,7 +37,6 @@ #include "llvm/Support/SourceMgr.h" #include "llvm/Support/YAMLParser.h" #include "llvm/Support/raw_ostream.h" -#include #include #include #include diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp index 56b557646100..d259da65c5cf 100644 --- a/llvm/lib/Support/YAMLTraits.cpp +++ b/llvm/lib/Support/YAMLTraits.cpp @@ -21,7 +21,6 @@ #include "llvm/Support/VersionTuple.h" #include "llvm/Support/YAMLParser.h" #include "llvm/Support/raw_ostream.h" -#include #include #include #include diff --git a/llvm/lib/Support/raw_ostream.cpp b/llvm/lib/Support/raw_ostream.cpp index 5d30c797ebf5..91fb4dbf1672 100644 --- a/llvm/lib/Support/raw_ostream.cpp +++ b/llvm/lib/Support/raw_ostream.cpp @@ -13,7 +13,6 @@ #include "llvm/Support/raw_ostream.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Config/config.h" -#include "llvm/Support/AutoConvert.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/Duration.h" #include "llvm/Support/ErrorHandling.h" diff --git a/llvm/lib/Support/raw_socket_stream.cpp b/llvm/lib/Support/raw_socket_stream.cpp index 04b3233084a4..7a4be5759f90 100644 --- a/llvm/lib/Support/raw_socket_stream.cpp +++ b/llvm/lib/Support/raw_socket_stream.cpp @@ -19,7 +19,6 @@ #include #include #include -#include #ifndef _WIN32 #include