[llvm] ec38e19 - MipsABIFlagsSection.h - replace unnecessary StringRef include with forward declaration

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 3 08:03:08 PST 2022


Author: Simon Pilgrim
Date: 2022-02-03T16:02:46Z
New Revision: ec38e19a2a4f44ff29f8e0ae70f75ed22a7b4f32

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

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

Added: 
    

Modified: 
    llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.h b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.h
index 6091ee24b04de..1a5bb64863ee8 100644
--- a/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.h
+++ b/llvm/lib/Target/Mips/MCTargetDesc/MipsABIFlagsSection.h
@@ -9,7 +9,6 @@
 #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSABIFLAGSSECTION_H
 #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSABIFLAGSSECTION_H
 
-#include "llvm/ADT/StringRef.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/MipsABIFlags.h"
 #include <cstdint>
@@ -17,6 +16,7 @@
 namespace llvm {
 
 class MCStreamer;
+class StringRef;
 
 struct MipsABIFlagsSection {
   // Internal representation of the fp_abi related values used in .module.


        


More information about the llvm-commits mailing list