[llvm] 57eb482 - [llvm] Stop including string (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 3 16:24:49 PST 2023


Author: Kazu Hirata
Date: 2023-12-03T16:24:43-08:00
New Revision: 57eb4826e5b4c99751c6eff4e4fc50b55919e5ae

URL: https://github.com/llvm/llvm-project/commit/57eb4826e5b4c99751c6eff4e4fc50b55919e5ae
DIFF: https://github.com/llvm/llvm-project/commit/57eb4826e5b4c99751c6eff4e4fc50b55919e5ae.diff

LOG: [llvm] Stop including string (NFC)

Identified with clangd.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
    llvm/include/llvm/DWARFLinkerParallel/StringPool.h
    llvm/include/llvm/Option/Option.h
    llvm/include/llvm/TableGen/Parser.h
    llvm/lib/CodeGen/SelectOptimize.cpp
    llvm/lib/Target/AArch64/AArch64Subtarget.h
    llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
    llvm/lib/Target/Mips/MipsSubtarget.h
    llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h
    llvm/tools/llvm-exegesis/lib/Analysis.h
    llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
    llvm/tools/llvm-objcopy/llvm-objcopy.cpp
    llvm/tools/llvm-pdbutil/DumpOutputStyle.h
    llvm/tools/llvm-pdbutil/ExplainOutputStyle.h
    llvm/tools/llvm-rc/ResourceScriptToken.h
    llvm/tools/llvm-readobj/llvm-readobj.h
    llvm/unittests/Support/AddressRangeTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h b/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
index 06925e620bdd6..ca9bb7244d669 100644
--- a/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
+++ b/llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
@@ -13,7 +13,6 @@
 #include "llvm/Analysis/TensorSpec.h"
 
 #include <array>
-#include <string>
 #include <vector>
 
 namespace llvm {

diff  --git a/llvm/include/llvm/DWARFLinkerParallel/StringPool.h b/llvm/include/llvm/DWARFLinkerParallel/StringPool.h
index 8608476a8dc79..e55909f343116 100644
--- a/llvm/include/llvm/DWARFLinkerParallel/StringPool.h
+++ b/llvm/include/llvm/DWARFLinkerParallel/StringPool.h
@@ -13,7 +13,6 @@
 #include "llvm/CodeGen/DwarfStringPoolEntry.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/PerThreadBumpPtrAllocator.h"
-#include <string>
 #include <string_view>
 
 namespace llvm {

diff  --git a/llvm/include/llvm/Option/Option.h b/llvm/include/llvm/Option/Option.h
index 4afd707d1475e..5d16fbdb6b77c 100644
--- a/llvm/include/llvm/Option/Option.h
+++ b/llvm/include/llvm/Option/Option.h
@@ -15,7 +15,6 @@
 #include "llvm/Option/OptTable.h"
 #include "llvm/Support/ErrorHandling.h"
 #include <cassert>
-#include <string>
 
 namespace llvm {
 

diff  --git a/llvm/include/llvm/TableGen/Parser.h b/llvm/include/llvm/TableGen/Parser.h
index 411259e4033cf..5a1a38d9a1465 100644
--- a/llvm/include/llvm/TableGen/Parser.h
+++ b/llvm/include/llvm/TableGen/Parser.h
@@ -14,7 +14,6 @@
 #define LLVM_TABLEGEN_PARSER_H
 
 #include "llvm/ADT/STLExtras.h"
-#include <string>
 #include <vector>
 
 namespace llvm {

diff  --git a/llvm/lib/CodeGen/SelectOptimize.cpp b/llvm/lib/CodeGen/SelectOptimize.cpp
index aaaee4dfdfac9..05413fb5d7582 100644
--- a/llvm/lib/CodeGen/SelectOptimize.cpp
+++ b/llvm/lib/CodeGen/SelectOptimize.cpp
@@ -39,7 +39,6 @@
 #include <memory>
 #include <queue>
 #include <stack>
-#include <string>
 
 using namespace llvm;
 

diff  --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index 5535fd44bf159..b17e215e200de 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -26,7 +26,6 @@
 #include "llvm/CodeGen/RegisterBankInfo.h"
 #include "llvm/CodeGen/TargetSubtargetInfo.h"
 #include "llvm/IR/DataLayout.h"
-#include <string>
 
 #define GET_SUBTARGETINFO_HEADER
 #include "AArch64GenSubtargetInfo.inc"

diff  --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
index 3932077c08f1b..ffb81bca208df 100644
--- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
+++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCTargetDesc.h
@@ -16,7 +16,6 @@
 #include "llvm/MC/MCRegisterInfo.h"
 #include "llvm/Support/CommandLine.h"
 #include <cstdint>
-#include <string>
 
 #define Hexagon_POINTER_SIZE 4
 

diff  --git a/llvm/lib/Target/Mips/MipsSubtarget.h b/llvm/lib/Target/Mips/MipsSubtarget.h
index 014c950425c30..225ee139d036f 100644
--- a/llvm/lib/Target/Mips/MipsSubtarget.h
+++ b/llvm/lib/Target/Mips/MipsSubtarget.h
@@ -26,7 +26,6 @@
 #include "llvm/IR/DataLayout.h"
 #include "llvm/MC/MCInstrItineraries.h"
 #include "llvm/Support/ErrorHandling.h"
-#include <string>
 
 #define GET_SUBTARGETINFO_HEADER
 #include "MipsGenSubtargetInfo.inc"

diff  --git a/llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h b/llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h
index f8f0966e6bc20..55e628ab1a8de 100644
--- a/llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h
+++ b/llvm/tools/llvm-cfi-verify/lib/GraphBuilder.h
@@ -38,7 +38,6 @@
 
 #include <functional>
 #include <set>
-#include <string>
 
 using Instr = llvm::cfi_verify::FileAnalysis::Instr;
 

diff  --git a/llvm/tools/llvm-exegesis/lib/Analysis.h b/llvm/tools/llvm-exegesis/lib/Analysis.h
index fb9417b4d566b..a0f22bad1adef 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.h
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.h
@@ -24,7 +24,6 @@
 #include "llvm/Support/raw_ostream.h"
 #include <memory>
 #include <set>
-#include <string>
 
 namespace llvm {
 namespace exegesis {

diff  --git a/llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp b/llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
index 636dd11ff3265..bb1b3a9569c71 100644
--- a/llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
+++ b/llvm/tools/llvm-exegesis/lib/SnippetRepetitor.cpp
@@ -7,7 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 #include <array>
-#include <string>
 
 #include "SnippetRepetitor.h"
 #include "Target.h"

diff  --git a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
index 2afa97601f5cf..558359eca3cd7 100644
--- a/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
+++ b/llvm/tools/llvm-objcopy/llvm-objcopy.cpp
@@ -56,7 +56,6 @@
 #include <cassert>
 #include <cstdlib>
 #include <memory>
-#include <string>
 #include <system_error>
 #include <utility>
 

diff  --git a/llvm/tools/llvm-pdbutil/DumpOutputStyle.h b/llvm/tools/llvm-pdbutil/DumpOutputStyle.h
index a0c9530cea99b..6714a6aa59f17 100644
--- a/llvm/tools/llvm-pdbutil/DumpOutputStyle.h
+++ b/llvm/tools/llvm-pdbutil/DumpOutputStyle.h
@@ -17,8 +17,6 @@
 #include "llvm/DebugInfo/PDB/Native/LinePrinter.h"
 #include "llvm/DebugInfo/PDB/Native/RawConstants.h"
 
-#include <string>
-
 namespace llvm {
 namespace object {
 class COFFObjectFile;

diff  --git a/llvm/tools/llvm-pdbutil/ExplainOutputStyle.h b/llvm/tools/llvm-pdbutil/ExplainOutputStyle.h
index 499f2a8648e0b..84b4a7e3d936d 100644
--- a/llvm/tools/llvm-pdbutil/ExplainOutputStyle.h
+++ b/llvm/tools/llvm-pdbutil/ExplainOutputStyle.h
@@ -13,8 +13,6 @@
 
 #include "llvm/DebugInfo/PDB/Native/LinePrinter.h"
 
-#include <string>
-
 namespace llvm {
 
 namespace pdb {

diff  --git a/llvm/tools/llvm-rc/ResourceScriptToken.h b/llvm/tools/llvm-rc/ResourceScriptToken.h
index cc8ca48b4907e..29f7502f89efd 100644
--- a/llvm/tools/llvm-rc/ResourceScriptToken.h
+++ b/llvm/tools/llvm-rc/ResourceScriptToken.h
@@ -29,7 +29,6 @@
 
 #include <cstdint>
 #include <map>
-#include <string>
 #include <vector>
 
 namespace llvm {

diff  --git a/llvm/tools/llvm-readobj/llvm-readobj.h b/llvm/tools/llvm-readobj/llvm-readobj.h
index 5a9fe28d883e5..532e43d4e16b0 100644
--- a/llvm/tools/llvm-readobj/llvm-readobj.h
+++ b/llvm/tools/llvm-readobj/llvm-readobj.h
@@ -16,7 +16,6 @@
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Error.h"
 #include "llvm/Support/ErrorOr.h"
-#include <string>
 
 namespace llvm {
   namespace object {

diff  --git a/llvm/unittests/Support/AddressRangeTest.cpp b/llvm/unittests/Support/AddressRangeTest.cpp
index 06b326678402d..76e7e5e78d964 100644
--- a/llvm/unittests/Support/AddressRangeTest.cpp
+++ b/llvm/unittests/Support/AddressRangeTest.cpp
@@ -11,7 +11,6 @@
 
 #include "gmock/gmock.h"
 #include "gtest/gtest.h"
-#include <string>
 
 using namespace llvm;
 


        


More information about the llvm-commits mailing list