[llvm] 4c55505 - [AArch64][Subtarget] add missing direct include of Triple.h (#143362)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 06:16:49 PDT 2025


Author: Tomer Shafir
Date: 2025-06-09T14:16:45+01:00
New Revision: 4c555051d76bb8375a9d22f8ce5af32acbc6003e

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

LOG: [AArch64][Subtarget] add missing direct include of Triple.h (#143362)

`AArch64Subtarget.h` uses the complete type of `Triple`, but had only
forward declared the class, which happend to be included through the
following bottom-up path for example: "llvm/TargetParser/Triple.h"
"llvm/MC/MCSubtargetInfo.h"
"llvm/CodeGen/TargetSubtargetInfo.h"

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/AArch64Subtarget.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/AArch64Subtarget.h b/llvm/lib/Target/AArch64/AArch64Subtarget.h
index f5ffc72cae537..3a9a37426bb93 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.h
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.h
@@ -26,6 +26,7 @@
 #include "llvm/CodeGen/RegisterBankInfo.h"
 #include "llvm/CodeGen/TargetSubtargetInfo.h"
 #include "llvm/IR/DataLayout.h"
+#include "llvm/TargetParser/Triple.h"
 
 #define GET_SUBTARGETINFO_HEADER
 #include "AArch64GenSubtargetInfo.inc"
@@ -33,7 +34,6 @@
 namespace llvm {
 class GlobalValue;
 class StringRef;
-class Triple;
 
 class AArch64Subtarget final : public AArch64GenSubtargetInfo {
 public:


        


More information about the llvm-commits mailing list