diff options
author | Chris Lattner <sabre@nondot.org> | 2002-10-29 15:44:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-10-29 15:44:40 +0000 |
commit | d020801aeaacbee4dc139bb08f81e44bc53b872e (patch) | |
tree | 7df732cbc0a2621fea094e5c59b99e0babba2fbf | |
parent | 3ea6a42b645d542c44d71af1061e0259e0c4b27b (diff) |
MachineInstrInfo doesn't need a TargetMachine member
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4371 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/MachineInstrInfo.h | 8 | ||||
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/include/llvm/Target/MachineInstrInfo.h b/include/llvm/Target/MachineInstrInfo.h index cd0a3edb2b..0a9632b913 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 cd0a3edb2b..0a9632b913 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(); |