[WinEH] Rip out the landingpad-based C++ EH state numbering code
[oota-llvm.git] / lib / CodeGen / PrologEpilogInserter.cpp
index 54f5553d3e15b8456fa8ff4d680614b812360bc4..585c7edc0f0ad92c078aaeb69f8099cd9fd884be 100644 (file)
@@ -829,12 +829,6 @@ void PEI::replaceFrameIndices(MachineFunction &Fn) {
               TFI.getFrameIndexReference(Fn, H.CatchObj.FrameIndex, UnusedReg);
       }
     }
-  } else if (MMI.hasWinEHFuncInfo(F)) {
-    WinEHFuncInfo &FuncInfo = MMI.getWinEHFuncInfo(Fn.getFunction());
-    auto I = FuncInfo.CatchHandlerParentFrameObjIdx.find(F);
-    if (I != FuncInfo.CatchHandlerParentFrameObjIdx.end())
-      FuncInfo.CatchHandlerParentFrameObjOffset[F] =
-          TFI.getFrameIndexReferenceFromSP(Fn, I->second, FrameReg);
   }
 
   // Store SPAdj at exit of a basic block.