Update fastisel for the changes in r120272.

llvm-svn: 120324
This commit is contained in:
Eric Christopher 2010-11-29 21:56:23 +00:00
parent 28218aa8f1
commit 43b0c6d94f
1 changed files with 7 additions and 3 deletions

View File

@ -1740,7 +1740,9 @@ bool ARMFastISel::ARMEmitLibcall(const Instruction *I, RTLIB::Libcall Call) {
CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi; CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi;
else else
CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL; CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc)) // Explicitly adding the predicate here.
MIB = AddDefaultPred(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
TII.get(CallOpc)))
.addExternalSymbol(TLI.getLibcallName(Call)); .addExternalSymbol(TLI.getLibcallName(Call));
// Add implicit physical register uses to the call. // Add implicit physical register uses to the call.
@ -1849,8 +1851,10 @@ bool ARMFastISel::SelectCall(const Instruction *I) {
CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi; CallOpc = Subtarget->isTargetDarwin() ? ARM::tBLXi_r9 : ARM::tBLXi;
else else
CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL; CallOpc = Subtarget->isTargetDarwin() ? ARM::BLr9 : ARM::BL;
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc)) // Explicitly adding the predicate here.
.addGlobalAddress(GV, 0, 0); MIB = AddDefaultPred(BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL,
TII.get(CallOpc)))
.addGlobalAddress(GV, 0, 0);
// Add implicit physical register uses to the call. // Add implicit physical register uses to the call.
for (unsigned i = 0, e = RegArgs.size(); i != e; ++i) for (unsigned i = 0, e = RegArgs.size(); i != e; ++i)