[llvm] 6440197 - TrigramIndex.h - move unnecessary StringRef include down to TrigramIndex.cpp

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 08:29:56 PST 2022


Author: Simon Pilgrim
Date: 2022-02-02T16:29:47Z
New Revision: 6440197ba5bfc05c1fda74e11f6dbe93c1b5dea6

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

LOG: TrigramIndex.h - move unnecessary StringRef include down to TrigramIndex.cpp

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 f772deca0301..0bfac498393f 100644
--- a/llvm/include/llvm/Support/TrigramIndex.h
+++ b/llvm/include/llvm/Support/TrigramIndex.h
@@ -27,12 +27,12 @@
 #define LLVM_SUPPORT_TRIGRAMINDEX_H
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringRef.h"
 #include <string>
 #include <unordered_map>
 #include <vector>
 
 namespace llvm {
+class StringRef;
 
 class TrigramIndex {
  public:

diff  --git a/llvm/lib/Support/TrigramIndex.cpp b/llvm/lib/Support/TrigramIndex.cpp
index 4370adc9c3e0..40a20ccc6583 100644
--- a/llvm/lib/Support/TrigramIndex.cpp
+++ b/llvm/lib/Support/TrigramIndex.cpp
@@ -15,6 +15,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/TrigramIndex.h"
+#include "llvm/ADT/StringRef.h"
 #include <set>
 
 using namespace llvm;


        


More information about the llvm-commits mailing list