Add a ELFSectionRef class and use it to expose getSectionType.
[oota-llvm.git] / lib / CodeGen / AggressiveAntiDepBreaker.cpp
index 58b87e12912cfc7ec8b241772ccc9689b8fb7ec2..5fe4c4bcaec43da4093b58c7f2e73a03badbaa75 100644 (file)
@@ -163,7 +163,7 @@ void AggressiveAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
   // all callee-saved registers. In non-return this is any
   // callee-saved register that is not saved in the prolog.
   const MachineFrameInfo *MFI = MF.getFrameInfo();
-  BitVector Pristine = MFI->getPristineRegs(BB);
+  BitVector Pristine = MFI->getPristineRegs(MF);
   for (const MCPhysReg *I = TRI->getCalleeSavedRegs(&MF); *I; ++I) {
     unsigned Reg = *I;
     if (!IsReturnBlock && !Pristine.test(Reg)) continue;