diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-05-08 13:15:49 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-05-08 14:06:53 +0100 |
commit | a30f5fd94dedaa900d9b50d4460924d9cd6ac48b (patch) | |
tree | 8cf204e414d7cb1e35f0496e7073676553b283cf | |
parent | c60c80e0cf2b83875767479083f7a3d99a98755f (diff) | |
download | llvm-a30f5fd94dedaa900d9b50d4460924d9cd6ac48b.zip llvm-a30f5fd94dedaa900d9b50d4460924d9cd6ac48b.tar.gz llvm-a30f5fd94dedaa900d9b50d4460924d9cd6ac48b.tar.bz2 |
CachePruning.h - reduce StringRef.h to Optional.h include. NFC
We only need to include Optional.h, forward declare StringRef and move the StringRef.h include down to CachePruning.cpp.
-rw-r--r-- | llvm/include/llvm/Support/CachePruning.h | 3 | ||||
-rw-r--r-- | llvm/lib/Support/CachePruning.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/include/llvm/Support/CachePruning.h b/llvm/include/llvm/Support/CachePruning.h index a72a864..10d6372 100644 --- a/llvm/include/llvm/Support/CachePruning.h +++ b/llvm/include/llvm/Support/CachePruning.h @@ -14,12 +14,13 @@ #ifndef LLVM_SUPPORT_CACHE_PRUNING_H #define LLVM_SUPPORT_CACHE_PRUNING_H -#include "llvm/ADT/StringRef.h" +#include "llvm/ADT/Optional.h" #include <chrono> namespace llvm { template <typename T> class Expected; +class StringRef; /// Policy for the pruneCache() function. A default constructed /// CachePruningPolicy provides a reasonable default policy. diff --git a/llvm/lib/Support/CachePruning.cpp b/llvm/lib/Support/CachePruning.cpp index 7a2f6c5..7663644 100644 --- a/llvm/lib/Support/CachePruning.cpp +++ b/llvm/lib/Support/CachePruning.cpp @@ -11,7 +11,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Support/CachePruning.h" - +#include "llvm/ADT/StringRef.h" #include "llvm/Support/Debug.h" #include "llvm/Support/Errc.h" #include "llvm/Support/Error.h" |