[WinEH] Remove more dead code
[oota-llvm.git] / lib / CodeGen / MachineModuleInfo.cpp
index ee5852a8f9314b5845fe53e8b8c4868b05c3896b..33db3edffb70439fd63cf147c33c3ff8d7d1d06a 100644 (file)
@@ -467,16 +467,8 @@ try_next:;
   return FilterID;
 }
 
-const Function *MachineModuleInfo::getWinEHParent(const Function *F) const {
-  StringRef WinEHParentName =
-      F->getFnAttribute("wineh-parent").getValueAsString();
-  if (WinEHParentName.empty() || WinEHParentName == F->getName())
-    return F;
-  return F->getParent()->getFunction(WinEHParentName);
-}
-
 WinEHFuncInfo &MachineModuleInfo::getWinEHFuncInfo(const Function *F) {
-  auto &Ptr = FuncInfoMap[getWinEHParent(F)];
+  auto &Ptr = FuncInfoMap[F];
   if (!Ptr)
     Ptr.reset(new WinEHFuncInfo);
   return *Ptr;