[llvm] 0e342e6 - XCoreInstPrinter.h - replace unnecessary StringRef include with forward declaration

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 06:29:25 PST 2022


Author: Simon Pilgrim
Date: 2022-02-03T14:29:03Z
New Revision: 0e342e6efd127c6938911784d8cea28e0f3deedb

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

LOG: XCoreInstPrinter.h - replace unnecessary StringRef include with forward declaration

Added: 
    

Modified: 
    llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
index fccd5183f07a..a8801fc2c5bc 100644
--- a/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
+++ b/llvm/lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.h
@@ -15,10 +15,10 @@
 #ifndef LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREINSTPRINTER_H
 #define LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREINSTPRINTER_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/MC/MCInstPrinter.h"
 
 namespace llvm {
+class StringRef;
 
 class XCoreInstPrinter : public MCInstPrinter {
 public:


        


More information about the llvm-commits mailing list