diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-01 17:57:27 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-01 17:57:27 +0000 |
commit | 4db3cffe94a5285239cc0056f939c6b74a5ca0b6 (patch) | |
tree | fc0bf7bcc0d257d16664265891f39562147cc9ae /include | |
parent | efeedceb41cc0c5ff7918cad870d5820de84b03d (diff) | |
download | external_llvm-4db3cffe94a5285239cc0056f939c6b74a5ca0b6.zip external_llvm-4db3cffe94a5285239cc0056f939c6b74a5ca0b6.tar.gz external_llvm-4db3cffe94a5285239cc0056f939c6b74a5ca0b6.tar.bz2 |
Hide the call to InitMCInstrInfo into tblgen generated ctor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134244 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 70969eb..1b6b3a7 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -44,9 +44,11 @@ class TargetInstrInfo : public MCInstrInfo { TargetInstrInfo(const TargetInstrInfo &); // DO NOT IMPLEMENT void operator=(const TargetInstrInfo &); // DO NOT IMPLEMENT public: - TargetInstrInfo(const MCInstrDesc *desc, unsigned NumOpcodes, - int CallFrameSetupOpcode = -1, - int CallFrameDestroyOpcode = -1); + TargetInstrInfo(int CFSetupOpcode = -1, int CFDestroyOpcode = -1) + : CallFrameSetupOpcode(CFSetupOpcode), + CallFrameDestroyOpcode(CFDestroyOpcode) { + } + virtual ~TargetInstrInfo(); /// getRegClass - Givem a machine instruction descriptor, returns the register @@ -678,11 +680,9 @@ private: /// libcodegen, not in libtarget. class TargetInstrInfoImpl : public TargetInstrInfo { protected: - TargetInstrInfoImpl(const MCInstrDesc *desc, unsigned NumOpcodes, - int CallFrameSetupOpcode = -1, + TargetInstrInfoImpl(int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1) - : TargetInstrInfo(desc, NumOpcodes, - CallFrameSetupOpcode, CallFrameDestroyOpcode) {} + : TargetInstrInfo(CallFrameSetupOpcode, CallFrameDestroyOpcode) {} public: virtual void ReplaceTailWithBranchTo(MachineBasicBlock::iterator OldInst, MachineBasicBlock *NewDest) const; |