[llvm] 643b2cc - [tools] Stop including llvm/ADT/StringMap.h (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 13 20:51:11 PDT 2023


Author: Kazu Hirata
Date: 2023-10-13T20:50:59-07:00
New Revision: 643b2ccd8296a3f8a2950421e72aa5ca59e4fecc

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

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

These source files do not use StringMap.h.

Added: 
    

Modified: 
    llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
    llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
    llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
    llvm/tools/llvm-exegesis/lib/LlvmState.h
    llvm/tools/llvm-readobj/ObjDumper.h
    llvm/tools/llvm-xray/xray-graph-diff.h

Removed: 
    


################################################################################
diff  --git a/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp b/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
index 9057a2d64092b1b..39776ae5a92000b 100644
--- a/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
+++ b/llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
@@ -21,7 +21,6 @@
 #include "llvm/ADT/PointerIntPair.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/SmallString.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/Twine.h"
 #include "llvm/BinaryFormat/Dwarf.h"

diff  --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
index b8e53de57bff270..02c4da11e032d66 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
@@ -11,7 +11,6 @@
 #include "Error.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/ScopeExit.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/bit.h"
 #include "llvm/ObjectYAML/YAML.h"

diff  --git a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
index 77e0994fe02081d..8a7faa0176e3247 100644
--- a/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
+++ b/llvm/tools/llvm-exegesis/lib/BenchmarkResult.h
@@ -17,7 +17,6 @@
 
 #include "LlvmState.h"
 #include "RegisterValue.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/ADT/StringSet.h"
 #include "llvm/MC/MCInst.h"

diff  --git a/llvm/tools/llvm-exegesis/lib/LlvmState.h b/llvm/tools/llvm-exegesis/lib/LlvmState.h
index 137ba1b5a54fa06..16f0def518256f0 100644
--- a/llvm/tools/llvm-exegesis/lib/LlvmState.h
+++ b/llvm/tools/llvm-exegesis/lib/LlvmState.h
@@ -16,7 +16,6 @@
 
 #include "MCInstrDescView.h"
 #include "RegisterAliasing.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/MC/MCInst.h"
 #include "llvm/MC/MCInstrInfo.h"

diff  --git a/llvm/tools/llvm-readobj/ObjDumper.h b/llvm/tools/llvm-readobj/ObjDumper.h
index fe588047e962cd9..1d679453581bc84 100644
--- a/llvm/tools/llvm-readobj/ObjDumper.h
+++ b/llvm/tools/llvm-readobj/ObjDumper.h
@@ -14,7 +14,6 @@
 #include <system_error>
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringRef.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/CommandLine.h"

diff  --git a/llvm/tools/llvm-xray/xray-graph-
diff .h b/llvm/tools/llvm-xray/xray-graph-
diff .h
index 5d12c563f47c497..c2b2a938bfbc686 100644
--- a/llvm/tools/llvm-xray/xray-graph-
diff .h
+++ b/llvm/tools/llvm-xray/xray-graph-
diff .h
@@ -15,7 +15,6 @@
 #define XRAY_GRAPH_DIFF_H
 
 #include "xray-graph.h"
-#include "llvm/ADT/StringMap.h"
 #include "llvm/XRay/Graph.h"
 
 namespace llvm {


        


More information about the llvm-commits mailing list