[llvm] 892df9e - FileCollector.h - reduce Twine.h include to forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 27 03:16:39 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-27T11:16:25+01:00
New Revision: 892df9e706e43c48854be8bf544c41a146611607

URL: https://github.com/llvm/llvm-project/commit/892df9e706e43c48854be8bf544c41a146611607
DIFF: https://github.com/llvm/llvm-project/commit/892df9e706e43c48854be8bf544c41a146611607.diff

LOG: FileCollector.h - reduce Twine.h include to forward declaration. NFC.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/FileCollector.h b/llvm/include/llvm/Support/FileCollector.h
index efe58909c9a0..2b5e9c669b68 100644
--- a/llvm/include/llvm/Support/FileCollector.h
+++ b/llvm/include/llvm/Support/FileCollector.h
@@ -12,13 +12,13 @@
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringSet.h"
-#include "llvm/ADT/Twine.h"
 #include "llvm/Support/VirtualFileSystem.h"
-
 #include <mutex>
+#include <string>
 
 namespace llvm {
 class FileCollectorFileSystem;
+class Twine;
 
 /// Captures file system interaction and generates data to be later replayed
 /// with the RedirectingFileSystem.

diff  --git a/llvm/lib/Support/FileCollector.cpp b/llvm/lib/Support/FileCollector.cpp
index cb83d845695e..59755556a5a3 100644
--- a/llvm/lib/Support/FileCollector.cpp
+++ b/llvm/lib/Support/FileCollector.cpp
@@ -8,6 +8,7 @@
 
 #include "llvm/Support/FileCollector.h"
 #include "llvm/ADT/SmallString.h"
+#include "llvm/ADT/Twine.h"
 #include "llvm/Support/FileSystem.h"
 #include "llvm/Support/Path.h"
 #include "llvm/Support/Process.h"


        


More information about the llvm-commits mailing list