From bfa5b98201dc9c793a48e5a713a2159ed96e72eb Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 10 Oct 2015 00:04:29 +0000 Subject: [WinEH] Remove more dead code wineh-parent is dead, so is ValueOrMBB. llvm-svn: 249920 --- llvm/lib/CodeGen/MachineModuleInfo.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp') diff --git a/llvm/lib/CodeGen/MachineModuleInfo.cpp b/llvm/lib/CodeGen/MachineModuleInfo.cpp index ee5852a8f931..33db3edffb70 100644 --- a/llvm/lib/CodeGen/MachineModuleInfo.cpp +++ b/llvm/lib/CodeGen/MachineModuleInfo.cpp @@ -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; -- cgit v1.2.3