diff options
author | Brad Smith <brad@comstyle.com> | 2014-09-11 17:40:51 +0000 |
---|---|---|
committer | Brad Smith <brad@comstyle.com> | 2014-09-11 17:40:51 +0000 |
commit | 2ce0d91bdee06e03ebe8f618812d13b0d8a5fad6 (patch) | |
tree | e029cba03301fe3f8e3d6fbfa120194813a8a838 /llvm/lib/Target | |
parent | 8239eaab99f9995656c2414127a47fae93396e9f (diff) | |
download | bcm5719-llvm-2ce0d91bdee06e03ebe8f618812d13b0d8a5fad6.tar.gz bcm5719-llvm-2ce0d91bdee06e03ebe8f618812d13b0d8a5fad6.zip |
Provide an implementation of getNoopForMachoTarget for SPARC.
llvm-svn: 217611
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrInfo.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrInfo.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp index 8b2e6bc5f32..6836d8d6f68 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.cpp @@ -37,6 +37,11 @@ SparcInstrInfo::SparcInstrInfo(SparcSubtarget &ST) RI(ST), Subtarget(ST) { } +/// getNoopForMachoTarget - Return the noop instruction to use for a noop. +void SparcInstrInfo::getNoopForMachoTarget(MCInst &NopInst) const { + NopInst.setOpcode(SP::NOP); +} + /// isLoadFromStackSlot - If the specified machine instruction is a direct /// load from a stack slot, return the virtual or physical register number of /// the destination along with the FrameIndex of the loaded stack slot. If diff --git a/llvm/lib/Target/Sparc/SparcInstrInfo.h b/llvm/lib/Target/Sparc/SparcInstrInfo.h index fe93ed7b57c..2c39bbc3000 100644 --- a/llvm/lib/Target/Sparc/SparcInstrInfo.h +++ b/llvm/lib/Target/Sparc/SparcInstrInfo.h @@ -93,6 +93,8 @@ public: const TargetRegisterInfo *TRI) const override; unsigned getGlobalBaseReg(MachineFunction *MF) const; + + void getNoopForMachoTarget(MCInst &NopInst) const override; }; } |