[llvm] 2b74755 - TrigramIndex.h - remove unnecessary StringMap.h include. NFC

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 06:31:15 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-12T14:30:52+01:00
New Revision: 2b74755ec5266ed828218fc877b4c6dc071987bf

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

LOG: TrigramIndex.h - remove unnecessary StringMap.h include. NFC

Include StringRef.h inside TrigramIndex.cpp as thats the only part of StringMap.h that is actually required.

Added: 
    

Modified: 
    llvm/include/llvm/Support/TrigramIndex.h
    llvm/lib/Support/TrigramIndex.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/TrigramIndex.h b/llvm/include/llvm/Support/TrigramIndex.h
index 9351c2db169a..d635694eb5fd 100644
--- a/llvm/include/llvm/Support/TrigramIndex.h
+++ b/llvm/include/llvm/Support/TrigramIndex.h
@@ -27,7 +27,6 @@
 #define LLVM_SUPPORT_TRIGRAMINDEX_H
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringMap.h"
 
 #include <string>
 #include <unordered_map>

diff  --git a/llvm/lib/Support/TrigramIndex.cpp b/llvm/lib/Support/TrigramIndex.cpp
index 94810b56db8e..88375e6e7863 100644
--- a/llvm/lib/Support/TrigramIndex.cpp
+++ b/llvm/lib/Support/TrigramIndex.cpp
@@ -16,6 +16,7 @@
 
 #include "llvm/Support/TrigramIndex.h"
 #include "llvm/ADT/SmallVector.h"
+#include "llvm/ADT/StringRef.h"
 
 #include <set>
 #include <string>


        


More information about the llvm-commits mailing list