llvm.org GIT mirror llvm / f48ae33
Ugh. Only meant to do this in thumb mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33780 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
11581158 }
11591159
11601160 if (VARegSaveSize) {
1161 // Epilogue for vararg functions: pop LR to R3 and branch off it.
1162 // FIXME: Verify this is still ok when R3 is no longer being reserved.
1163 BuildMI(MBB, MBBI, TII.get(ARM::tPOP)).addReg(ARM::R3);
1161 if (isThumb)
1162 // Epilogue for vararg functions: pop LR to R3 and branch off it.
1163 // FIXME: Verify this is still ok when R3 is no longer being reserved.
1164 BuildMI(MBB, MBBI, TII.get(ARM::tPOP)).addReg(ARM::R3);
1165
11641166 emitSPUpdate(MBB, MBBI, VARegSaveSize, isThumb, TII);
1165 BuildMI(MBB, MBBI, TII.get(ARM::tBX_RET_vararg)).addReg(ARM::R3);
1166 MBB.erase(MBBI);
1167
1168 if (isThumb) {
1169 BuildMI(MBB, MBBI, TII.get(ARM::tBX_RET_vararg)).addReg(ARM::R3);
1170 MBB.erase(MBBI);
1171 }
11671172 }
11681173 }
11691174