[llvm] f25daa5 - [llvm] Stop including llvm/ADT/StringRef.h (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 3 10:34:54 PST 2023


Author: Kazu Hirata
Date: 2023-12-03T10:34:48-08:00
New Revision: f25daa589ee0649ea87d1e8ae9332cb29d064b9e

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

LOG: [llvm] Stop including llvm/ADT/StringRef.h (NFC)

Identified with clangd.

Added: 
    

Modified: 
    llvm/include/llvm/ObjCopy/ELF/ELFConfig.h
    llvm/include/llvm/Target/CGPassBuilderOption.h
    llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
    llvm/lib/Support/ARMBuildAttrs.cpp
    llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h
    llvm/lib/Testing/Support/Error.cpp
    llvm/tools/lli/ChildTarget/ChildTarget.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ObjCopy/ELF/ELFConfig.h b/llvm/include/llvm/ObjCopy/ELF/ELFConfig.h
index 1e98b10919af1..8f1fa5c78eaa8 100644
--- a/llvm/include/llvm/ObjCopy/ELF/ELFConfig.h
+++ b/llvm/include/llvm/ObjCopy/ELF/ELFConfig.h
@@ -9,7 +9,6 @@
 #ifndef LLVM_OBJCOPY_ELF_ELFCONFIG_H
 #define LLVM_OBJCOPY_ELF_ELFCONFIG_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/Object/ELFTypes.h"
 #include <vector>
 

diff  --git a/llvm/include/llvm/Target/CGPassBuilderOption.h b/llvm/include/llvm/Target/CGPassBuilderOption.h
index bf297ae498b2d..85abddbb22929 100644
--- a/llvm/include/llvm/Target/CGPassBuilderOption.h
+++ b/llvm/include/llvm/Target/CGPassBuilderOption.h
@@ -14,7 +14,6 @@
 #ifndef LLVM_TARGET_CGPASSBUILDEROPTION_H
 #define LLVM_TARGET_CGPASSBUILDEROPTION_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/Target/TargetOptions.h"
 #include <optional>
 

diff  --git a/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h b/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
index 5381ada37fe27..9a0abdfa89544 100644
--- a/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
+++ b/llvm/include/llvm/Transforms/IPO/ProfiledCallGraph.h
@@ -10,7 +10,6 @@
 #define LLVM_TRANSFORMS_IPO_PROFILEDCALLGRAPH_H
 
 #include "llvm/ADT/GraphTraits.h"
-#include "llvm/ADT/StringRef.h"
 #include "llvm/ProfileData/SampleProf.h"
 #include "llvm/ProfileData/SampleProfReader.h"
 #include "llvm/Transforms/IPO/SampleContextTracker.h"

diff  --git a/llvm/lib/Support/ARMBuildAttrs.cpp b/llvm/lib/Support/ARMBuildAttrs.cpp
index 26f189302e373..6ff74e02820da 100644
--- a/llvm/lib/Support/ARMBuildAttrs.cpp
+++ b/llvm/lib/Support/ARMBuildAttrs.cpp
@@ -7,7 +7,6 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/ARMBuildAttributes.h"
-#include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/Support/LEB128.h"
 #include <iomanip>

diff  --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h
index 4ccbbf9fb9c10..8fb1760936e81 100644
--- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h
+++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.h
@@ -14,7 +14,6 @@
 
 #include "HexagonSubtarget.h"
 #include "HexagonTargetMachine.h"
-#include "llvm/ADT/StringRef.h"
 #include "llvm/CodeGen/SelectionDAG.h"
 #include "llvm/CodeGen/SelectionDAGISel.h"
 #include "llvm/Support/CodeGen.h"

diff  --git a/llvm/lib/Testing/Support/Error.cpp b/llvm/lib/Testing/Support/Error.cpp
index a5f8f9b47b3f6..657092146cae8 100644
--- a/llvm/lib/Testing/Support/Error.cpp
+++ b/llvm/lib/Testing/Support/Error.cpp
@@ -8,8 +8,6 @@
 
 #include "llvm/Testing/Support/Error.h"
 
-#include "llvm/ADT/StringRef.h"
-
 using namespace llvm;
 
 llvm::detail::ErrorHolder llvm::detail::TakeError(llvm::Error Err) {

diff  --git a/llvm/tools/lli/ChildTarget/ChildTarget.cpp b/llvm/tools/lli/ChildTarget/ChildTarget.cpp
index cf1b03a141c5e..cb81ac5172e44 100644
--- a/llvm/tools/lli/ChildTarget/ChildTarget.cpp
+++ b/llvm/tools/lli/ChildTarget/ChildTarget.cpp
@@ -10,7 +10,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h"
 #include "llvm/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.h"
 #include "llvm/ExecutionEngine/Orc/TargetProcess/SimpleExecutorMemoryManager.h"


        


More information about the llvm-commits mailing list