diff options
author | Evan Cheng <evan.cheng@apple.com> | 2005-12-23 22:14:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2005-12-23 22:14:32 +0000 |
commit | 171049d10f71fdeffdfd9592243d7af40db86c71 (patch) | |
tree | d23595e4c5dd19b5898c3d4b26639c53077467bd /lib/Target/PowerPC/PPCRegisterInfo.cpp | |
parent | 7b05bd58149f7984257d7881aaa2bd9407628754 (diff) |
* Removed the use of FLAG. Now use hasFlagIn and hasFlagOut instead.
* Added a pseudo instruction (for each target) that represent "return void".
This is a workaround for lack of optional flag operand (return void is not
lowered so it does not have a flag operand.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24997 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCRegisterInfo.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCRegisterInfo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCRegisterInfo.cpp b/lib/Target/PowerPC/PPCRegisterInfo.cpp index ae136cbc42..494bedaf44 100644 --- a/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -373,7 +373,8 @@ void PPCRegisterInfo::emitEpilogue(MachineFunction &MF, const MachineFrameInfo *MFI = MF.getFrameInfo(); MachineBasicBlock::iterator MBBI = prior(MBB.end()); MachineInstr *MI; - assert(MBBI->getOpcode() == PPC::BLR && + // FIXME: BLRVOID should be removed. See PPCInstrInfo.td + assert((MBBI->getOpcode() == PPC::BLR || MBBI->getOpcode() == PPC::BLRVOID) && "Can only insert epilog into returning blocks"); // Get the number of bytes allocated from the FrameInfo... |