[llvm] d0ec61c - [Target] Remove unused forward declarations (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 7 00:16:42 PDT 2022
Author: Kazu Hirata
Date: 2022-08-07T00:16:16-07:00
New Revision: d0ec61c9ffb32891ed02e57fd2327aa4d641ecde
URL: https://github.com/llvm/llvm-project/commit/d0ec61c9ffb32891ed02e57fd2327aa4d641ecde
DIFF: https://github.com/llvm/llvm-project/commit/d0ec61c9ffb32891ed02e57fd2327aa4d641ecde.diff
LOG: [Target] Remove unused forward declarations (NFC)
Added:
Modified:
llvm/lib/Target/AArch64/AArch64FrameLowering.h
llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h
llvm/lib/Target/AMDGPU/MCTargetDesc/R600MCTargetDesc.h
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.h b/llvm/lib/Target/AArch64/AArch64FrameLowering.h
index f59860a24d9ba..2d9c34661de5c 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.h
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.h
@@ -18,8 +18,6 @@
namespace llvm {
-class MCCFIInstruction;
-
class AArch64FrameLowering : public TargetFrameLowering {
public:
explicit AArch64FrameLowering()
diff --git a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
index 7d1de3e53c0ce..049c49796dc65 100644
--- a/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
+++ b/llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCTargetDesc.h
@@ -33,7 +33,6 @@ class MCSubtargetInfo;
class MCTargetOptions;
class MCTargetStreamer;
class Target;
-class FeatureBitset;
MCCodeEmitter *createAArch64MCCodeEmitter(const MCInstrInfo &MCII,
MCContext &Ctx);
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h
index 228963ff2a20f..200c9b8726e26 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCCodeEmitter.h
@@ -23,7 +23,6 @@ class MCInst;
class MCInstrInfo;
class MCOperand;
class MCSubtargetInfo;
-class FeatureBitset;
class AMDGPUMCCodeEmitter : public MCCodeEmitter {
virtual void anchor();
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/R600MCTargetDesc.h b/llvm/lib/Target/AMDGPU/MCTargetDesc/R600MCTargetDesc.h
index b4ce748532f80..cf40e7eccb5d2 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/R600MCTargetDesc.h
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/R600MCTargetDesc.h
@@ -21,7 +21,6 @@ namespace llvm {
class MCCodeEmitter;
class MCContext;
class MCInstrInfo;
-class MCRegisterInfo;
MCCodeEmitter *createR600MCCodeEmitter(const MCInstrInfo &MCII,
MCContext &Ctx);
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 8eed1b01ff8e8..02384e38f6d4a 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -39,9 +39,6 @@ using namespace llvm;
#include "AMDGPUGenInstrInfo.inc"
namespace llvm {
-
-class AAResults;
-
namespace AMDGPU {
#define GET_D16ImageDimIntrinsics_IMPL
#define GET_ImageDimIntrinsicTable_IMPL
More information about the llvm-commits
mailing list