diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-02-28 23:53:30 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-02-28 23:53:30 +0000 |
commit | c01810eeb7227010f73cb39e3c4fa0197a3c4ef0 (patch) | |
tree | 10b49a3600d9b9c798d9679ca3300348ac7eb606 /lib/Target/ARM/ARMInstrInfo.h | |
parent | b62fbc5e469f532fd1747a3c24115fb1d0ba792f (diff) | |
download | llvm-c01810eeb7227010f73cb39e3c4fa0197a3c4ef0.tar.gz llvm-c01810eeb7227010f73cb39e3c4fa0197a3c4ef0.tar.bz2 llvm-c01810eeb7227010f73cb39e3c4fa0197a3c4ef0.tar.xz |
ARM implement TargetInstrInfo::getNoopForMachoTarget()
Without this hook, functions w/ a completely empty body (including no
epilogue) will cause an MCEmitter assertion failure.
For example,
define internal fastcc void @empty_function() {
unreachable
}
rdar://10947471
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrInfo.h')
-rw-r--r-- | lib/Target/ARM/ARMInstrInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrInfo.h b/lib/Target/ARM/ARMInstrInfo.h index 3a69692326..7bedf30cbe 100644 --- a/lib/Target/ARM/ARMInstrInfo.h +++ b/lib/Target/ARM/ARMInstrInfo.h @@ -28,6 +28,9 @@ class ARMInstrInfo : public ARMBaseInstrInfo { public: explicit ARMInstrInfo(const ARMSubtarget &STI); + /// getNoopForMachoTarget - Return the noop instruction to use for a noop. + void getNoopForMachoTarget(MCInst &NopInst) const; + // Return the non-pre/post incrementing version of 'Opc'. Return 0 // if there is not such an opcode. unsigned getUnindexedOpcode(unsigned Opc) const; |