Skip to content

Commit 47359fb

Browse files
committed
Drop a StringMap.h include, NFC
$ diff -u <(sort thedeps-before.txt) <(sort thedeps-after.txt) \ | grep '^[-+] ' | sort | uniq -c | sort -nr 231 - llvm/include/llvm/ADT/StringMap.h 171 - llvm/include/llvm/Support/AllocatorBase.h 142 - llvm/include/llvm/Support/PointerLikeTypeTraits.h
1 parent ee87b22 commit 47359fb

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

llvm/include/llvm/Support/Host.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@
1313
#ifndef LLVM_SUPPORT_HOST_H
1414
#define LLVM_SUPPORT_HOST_H
1515

16-
#include "llvm/ADT/StringMap.h"
17-
1816
#include <string>
1917

2018
namespace llvm {
19+
class MallocAllocator;
20+
class StringRef;
21+
template <typename ValueTy, typename AllocatorTy> class StringMap;
22+
2123
namespace sys {
2224

2325
/// getDefaultTargetTriple() - Return the default target triple the compiler
@@ -50,7 +52,7 @@ namespace sys {
5052
/// all valid LLVM feature names.
5153
///
5254
/// \return - True on success.
53-
bool getHostCPUFeatures(StringMap<bool> &Features);
55+
bool getHostCPUFeatures(StringMap<bool, MallocAllocator> &Features);
5456

5557
/// Get the number of physical cores (as opposed to logical cores returned
5658
/// from thread::hardware_concurrency(), which includes hyperthreads).

llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#ifndef LIB_EXECUTIONENGINE_JITLINK_MACHOLINKGRAPHBUILDER_H
1414
#define LIB_EXECUTIONENGINE_JITLINK_MACHOLINKGRAPHBUILDER_H
1515

16+
#include "llvm/ADT/DenseMap.h"
17+
#include "llvm/ADT/StringMap.h"
1618
#include "llvm/ExecutionEngine/JITLink/JITLink.h"
1719

1820
#include "EHFrameSupportImpl.h"

llvm/lib/Object/ArchiveWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#include "llvm/Object/ArchiveWriter.h"
1414
#include "llvm/ADT/ArrayRef.h"
15+
#include "llvm/ADT/StringMap.h"
1516
#include "llvm/ADT/StringRef.h"
1617
#include "llvm/BinaryFormat/Magic.h"
1718
#include "llvm/IR/LLVMContext.h"

llvm/lib/Support/FoldingSet.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include "llvm/ADT/FoldingSet.h"
1515
#include "llvm/ADT/Hashing.h"
16+
#include "llvm/ADT/StringRef.h"
1617
#include "llvm/Support/Allocator.h"
1718
#include "llvm/Support/ErrorHandling.h"
1819
#include "llvm/Support/Host.h"

llvm/lib/Support/Host.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,17 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#include "llvm/Support/Host.h"
14-
#include "llvm/Support/TargetParser.h"
1514
#include "llvm/ADT/SmallSet.h"
1615
#include "llvm/ADT/SmallVector.h"
16+
#include "llvm/ADT/StringMap.h"
1717
#include "llvm/ADT/StringRef.h"
1818
#include "llvm/ADT/StringSwitch.h"
1919
#include "llvm/ADT/Triple.h"
2020
#include "llvm/Config/llvm-config.h"
2121
#include "llvm/Support/Debug.h"
2222
#include "llvm/Support/FileSystem.h"
2323
#include "llvm/Support/MemoryBuffer.h"
24+
#include "llvm/Support/TargetParser.h"
2425
#include "llvm/Support/raw_ostream.h"
2526
#include <assert.h>
2627
#include <string.h>

llvm/tools/dsymutil/BinaryHolder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define LLVM_TOOLS_DSYMUTIL_BINARYHOLDER_H
1515

1616
#include "llvm/ADT/DenseMap.h"
17+
#include "llvm/ADT/StringMap.h"
1718
#include "llvm/ADT/Triple.h"
1819
#include "llvm/Object/Archive.h"
1920
#include "llvm/Object/Error.h"

0 commit comments

Comments
 (0)