[llvm] d02bc5e - Pass.h - replace StringRef.h include with forward declaration. NFC.

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 12 05:37:40 PDT 2020


Author: Simon Pilgrim
Date: 2020-04-12T13:36:20+01:00
New Revision: d02bc5e15068fd11edf2739503561dead918784b

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

LOG: Pass.h - replace StringRef.h include with forward declaration. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/Pass.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 49419844e7ad..5ed4ca4f6157 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -28,7 +28,6 @@
 #ifndef LLVM_PASS_H
 #define LLVM_PASS_H
 
-#include "llvm/ADT/StringRef.h"
 #include <string>
 
 namespace llvm {
@@ -43,6 +42,7 @@ class PassInfo;
 class PMDataManager;
 class PMStack;
 class raw_ostream;
+class StringRef;
 
 // AnalysisID - Use the PassInfo to identify a pass...
 using AnalysisID = const void *;


        


More information about the llvm-commits mailing list