From 3dad29b677e427bf69c035605a16efd065576829 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 10 Sep 2024 19:36:04 -0700 Subject: [PATCH] [LTO] Remove unused includes (NFC) (#108110) clangd reports these as unused headers. My manual inspection agrees with the findings. --- llvm/include/llvm/LTO/LTO.h | 1 - llvm/include/llvm/Transforms/IPO/FunctionImport.h | 2 -- llvm/lib/LTO/LTO.cpp | 1 - llvm/lib/Transforms/IPO/FunctionImport.cpp | 1 - 4 files changed, 5 deletions(-) diff --git a/llvm/include/llvm/LTO/LTO.h b/llvm/include/llvm/LTO/LTO.h index fc6e93606de122..214aa4e1c562dc 100644 --- a/llvm/include/llvm/LTO/LTO.h +++ b/llvm/include/llvm/LTO/LTO.h @@ -19,7 +19,6 @@ #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/MapVector.h" -#include "llvm/ADT/StringMap.h" #include "llvm/Bitcode/BitcodeReader.h" #include "llvm/IR/ModuleSummaryIndex.h" #include "llvm/LTO/Config.h" diff --git a/llvm/include/llvm/Transforms/IPO/FunctionImport.h b/llvm/include/llvm/Transforms/IPO/FunctionImport.h index 0a6cc5951b706a..70739709a810ab 100644 --- a/llvm/include/llvm/Transforms/IPO/FunctionImport.h +++ b/llvm/include/llvm/Transforms/IPO/FunctionImport.h @@ -17,9 +17,7 @@ #include "llvm/IR/PassManager.h" #include "llvm/Support/Error.h" #include -#include #include -#include #include #include diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 5d9a5cbd18f156..a88124dacfaefd 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -38,7 +38,6 @@ #include "llvm/Support/CommandLine.h" #include "llvm/Support/Error.h" #include "llvm/Support/FileSystem.h" -#include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/SHA1.h" diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 1aac8e07135875..ff0d78178bd188 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -46,7 +46,6 @@ #include "llvm/Transforms/Utils/ValueMapper.h" #include #include -#include #include #include #include