Remove some unnecessary forward declarations and put a couple more

where they're supposed to reside.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232014 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2015-03-12 06:07:16 +00:00
parent 013ed4aa69
commit 257ea92cdf
8 changed files with 3 additions and 24 deletions

View File

@ -21,10 +21,6 @@
#include "ARMGenRegisterInfo.inc"
namespace llvm {
class ARMSubtarget;
class ARMBaseInstrInfo;
class Type;
/// Register allocation hints.
namespace ARMRI {
enum {

View File

@ -26,7 +26,7 @@
namespace llvm {
struct EVT;
class HexagonSubtarget;
class HexagonInstrInfo : public HexagonGenInstrInfo {
virtual void anchor();
const HexagonRegisterInfo RI;

View File

@ -37,11 +37,6 @@
#define HEXAGON_RESERVED_REG_2 Hexagon::R11
namespace llvm {
class HexagonSubtarget;
class HexagonInstrInfo;
class Type;
struct HexagonRegisterInfo : public HexagonGenRegisterInfo {
HexagonRegisterInfo();

View File

@ -21,8 +21,6 @@
#include "MipsGenRegisterInfo.inc"
namespace llvm {
class Type;
class MipsRegisterInfo : public MipsGenRegisterInfo {
public:
MipsRegisterInfo();

View File

@ -63,7 +63,7 @@ enum PPC970_Unit {
};
} // end namespace PPCII
class PPCSubtarget;
class PPCInstrInfo : public PPCGenInstrInfo {
PPCSubtarget &Subtarget;
const PPCRegisterInfo RI;

View File

@ -22,10 +22,6 @@
#include "PPCGenRegisterInfo.inc"
namespace llvm {
class PPCSubtarget;
class TargetInstrInfo;
class Type;
class PPCRegisterInfo : public PPCGenRegisterInfo {
DenseMap<unsigned, unsigned> ImmToIdxMap;
const PPCTargetMachine &TM;

View File

@ -20,10 +20,6 @@
#include "SparcGenRegisterInfo.inc"
namespace llvm {
class TargetInstrInfo;
class Type;
struct SparcRegisterInfo : public SparcGenRegisterInfo {
SparcRegisterInfo();

View File

@ -20,9 +20,7 @@
#include "X86GenRegisterInfo.inc"
namespace llvm {
class Type;
class TargetInstrInfo;
class X86Subtarget;
class X86Subtarget;
class X86RegisterInfo final : public X86GenRegisterInfo {
public: