diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index cd0a3edb2bd..0a9632b9136 100644 --- a/include/llvm/Target/MachineInstrInfo.h +++ b/include/llvm/Target/MachineInstrInfo.h @@ -81,10 +81,7 @@ struct MachineInstrDescriptor { class MachineInstrInfo { -public: - const TargetMachine& target; - -protected: +private: const MachineInstrDescriptor* desc; // raw array to allow static init'n unsigned descSize; // number of entries in the desc array unsigned numRealOpCodes; // number of non-dummy op codes @@ -92,8 +89,7 @@ protected: MachineInstrInfo(const MachineInstrInfo &); // DO NOT IMPLEMENT void operator=(const MachineInstrInfo &); // DO NOT IMPLEMENT public: - MachineInstrInfo(const TargetMachine& tgt, - const MachineInstrDescriptor *desc, unsigned descSize, + MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize, unsigned numRealOpCodes); virtual ~MachineInstrInfo(); diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index cd0a3edb2bd..0a9632b9136 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -81,10 +81,7 @@ struct MachineInstrDescriptor { class MachineInstrInfo { -public: - const TargetMachine& target; - -protected: +private: const MachineInstrDescriptor* desc; // raw array to allow static init'n unsigned descSize; // number of entries in the desc array unsigned numRealOpCodes; // number of non-dummy op codes @@ -92,8 +89,7 @@ protected: MachineInstrInfo(const MachineInstrInfo &); // DO NOT IMPLEMENT void operator=(const MachineInstrInfo &); // DO NOT IMPLEMENT public: - MachineInstrInfo(const TargetMachine& tgt, - const MachineInstrDescriptor *desc, unsigned descSize, + MachineInstrInfo(const MachineInstrDescriptor *desc, unsigned descSize, unsigned numRealOpCodes); virtual ~MachineInstrInfo();