summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2014-08-08 19:13:23 +0000
committerJoerg Sonnenberger <joerg@bec.de>2014-08-08 19:13:23 +0000
commit7ee0f31a8b917add0f427ca3f47568b0b3225b7f (patch)
tree2040c62ae72f7ef516bffa797b2f018cb83e056e /llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
parent793f28d274d6732fd4e063d21a4f0606fac76dc9 (diff)
downloadbcm5719-llvm-7ee0f31a8b917add0f427ca3f47568b0b3225b7f.tar.gz
bcm5719-llvm-7ee0f31a8b917add0f427ca3f47568b0b3225b7f.zip
Provide an implementation of getNoopForMachoTarget for PPC, otherwise
empty functions will assert in the MC object writer. llvm-svn: 215238
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
index 1f4b3dd7e16..61adc4b30e0 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
@@ -331,6 +331,11 @@ void PPCInstrInfo::insertNoop(MachineBasicBlock &MBB,
BuildMI(MBB, MI, DL, get(Opcode));
}
+/// getNoopForMachoTarget - Return the noop instruction to use for a noop.
+void PPCInstrInfo::getNoopForMachoTarget(MCInst &NopInst) const {
+ NopInst.setOpcode(PPC::NOP);
+}
+
// Branch analysis.
// Note: If the condition register is set to CTR or CTR8 then this is a
// BDNZ (imm == 1) or BDZ (imm == 0) branch.
OpenPOWER on IntegriCloud