[llvm] 770931b - [XCore] Remove unused forward declarations. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 23 08:32:16 PDT 2020
Author: Simon Pilgrim
Date: 2020-04-23T16:30:45+01:00
New Revision: 770931b2421d238719316e6be4b8eeeca04b7d96
URL: https://github.com/llvm/llvm-project/commit/770931b2421d238719316e6be4b8eeeca04b7d96
DIFF: https://github.com/llvm/llvm-project/commit/770931b2421d238719316e6be4b8eeeca04b7d96.diff
LOG: [XCore] Remove unused forward declarations. NFC.
Added:
Modified:
llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h
llvm/lib/Target/XCore/XCore.h
llvm/lib/Target/XCore/XCoreISelLowering.h
llvm/lib/Target/XCore/XCoreMCInstLower.h
llvm/lib/Target/XCore/XCoreRegisterInfo.h
llvm/lib/Target/XCore/XCoreSelectionDAGInfo.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h b/llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h
index 3e56302f4add..096b22415a22 100644
--- a/llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h
+++ b/llvm/lib/Target/XCore/MCTargetDesc/XCoreMCTargetDesc.h
@@ -13,12 +13,6 @@
#ifndef LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREMCTARGETDESC_H
#define LLVM_LIB_TARGET_XCORE_MCTARGETDESC_XCOREMCTARGETDESC_H
-namespace llvm {
-
-class Target;
-
-} // end namespace llvm
-
// Defines symbolic names for XCore registers. This defines a mapping from
// register name to register number.
//
diff --git a/llvm/lib/Target/XCore/XCore.h b/llvm/lib/Target/XCore/XCore.h
index b7b86be9ab51..d31c34910ef6 100644
--- a/llvm/lib/Target/XCore/XCore.h
+++ b/llvm/lib/Target/XCore/XCore.h
@@ -22,7 +22,6 @@ namespace llvm {
class ModulePass;
class TargetMachine;
class XCoreTargetMachine;
- class formatted_raw_ostream;
void initializeXCoreLowerThreadLocalPass(PassRegistry &p);
diff --git a/llvm/lib/Target/XCore/XCoreISelLowering.h b/llvm/lib/Target/XCore/XCoreISelLowering.h
index c4bb919a82cc..45c21fbf2b74 100644
--- a/llvm/lib/Target/XCore/XCoreISelLowering.h
+++ b/llvm/lib/Target/XCore/XCoreISelLowering.h
@@ -22,7 +22,6 @@ namespace llvm {
// Forward delcarations
class XCoreSubtarget;
- class XCoreTargetMachine;
namespace XCoreISD {
enum NodeType : unsigned {
diff --git a/llvm/lib/Target/XCore/XCoreMCInstLower.h b/llvm/lib/Target/XCore/XCoreMCInstLower.h
index 0eaa84ef736b..efb359cc57e1 100644
--- a/llvm/lib/Target/XCore/XCoreMCInstLower.h
+++ b/llvm/lib/Target/XCore/XCoreMCInstLower.h
@@ -8,6 +8,7 @@
#ifndef LLVM_LIB_TARGET_XCORE_XCOREMCINSTLOWER_H
#define LLVM_LIB_TARGET_XCORE_XCOREMCINSTLOWER_H
+
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/Support/Compiler.h"
@@ -16,8 +17,6 @@ namespace llvm {
class MCInst;
class MCOperand;
class MachineInstr;
- class MachineFunction;
- class Mangler;
class AsmPrinter;
/// This class is used to lower an MachineInstr into an MCInst.
diff --git a/llvm/lib/Target/XCore/XCoreRegisterInfo.h b/llvm/lib/Target/XCore/XCoreRegisterInfo.h
index 49f3568a92de..f1eec7bc87b4 100644
--- a/llvm/lib/Target/XCore/XCoreRegisterInfo.h
+++ b/llvm/lib/Target/XCore/XCoreRegisterInfo.h
@@ -20,8 +20,6 @@
namespace llvm {
-class TargetInstrInfo;
-
struct XCoreRegisterInfo : public XCoreGenRegisterInfo {
public:
XCoreRegisterInfo();
diff --git a/llvm/lib/Target/XCore/XCoreSelectionDAGInfo.h b/llvm/lib/Target/XCore/XCoreSelectionDAGInfo.h
index 5dcef08391c9..637e8547e642 100644
--- a/llvm/lib/Target/XCore/XCoreSelectionDAGInfo.h
+++ b/llvm/lib/Target/XCore/XCoreSelectionDAGInfo.h
@@ -17,8 +17,6 @@
namespace llvm {
-class XCoreTargetMachine;
-
class XCoreSelectionDAGInfo : public SelectionDAGTargetInfo {
public:
SDValue EmitTargetCodeForMemcpy(SelectionDAG &DAG, const SDLoc &dl,
More information about the llvm-commits
mailing list