[llvm] aedea00 - Signposts.h - move unnecessary StringRef include down to Signposts.cpp

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 07:41:28 PST 2022


Author: Simon Pilgrim
Date: 2022-02-02T15:36:00Z
New Revision: aedea002b493d17a8f6e5407a4d3f10a54064538

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

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/Signposts.h b/llvm/include/llvm/Support/Signposts.h
index dabbba6f89d1a..37089bd1c17d3 100644
--- a/llvm/include/llvm/Support/Signposts.h
+++ b/llvm/include/llvm/Support/Signposts.h
@@ -16,11 +16,11 @@
 #ifndef LLVM_SUPPORT_SIGNPOSTS_H
 #define LLVM_SUPPORT_SIGNPOSTS_H
 
-#include "llvm/ADT/StringRef.h"
 #include <memory>
 
 namespace llvm {
 class SignpostEmitterImpl;
+class StringRef;
 
 /// Manages the emission of signposts into the recording method supported by
 /// the OS.

diff  --git a/llvm/lib/Support/Signposts.cpp b/llvm/lib/Support/Signposts.cpp
index 074dddc81c808..b0e5900569886 100644
--- a/llvm/lib/Support/Signposts.cpp
+++ b/llvm/lib/Support/Signposts.cpp
@@ -7,8 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/Support/Signposts.h"
-
+#include "llvm/ADT/StringRef.h"
 #include "llvm/Config/config.h"
+
 #if LLVM_SUPPORT_XCODE_SIGNPOSTS
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/Support/Mutex.h"


        


More information about the llvm-commits mailing list