[WinEH] Remove more dead code
wineh-parent is dead, so is ValueOrMBB.
llvm-svn: 249920
diff --git a/llvm/lib/CodeGen/WinEHPrepare.cpp b/llvm/lib/CodeGen/WinEHPrepare.cpp
index 5affb3f..3872879 100644
--- a/llvm/lib/CodeGen/WinEHPrepare.cpp
+++ b/llvm/lib/CodeGen/WinEHPrepare.cpp
@@ -144,10 +144,6 @@
if (!Fn.hasPersonalityFn())
return false;
- // No need to prepare outlined handlers.
- if (Fn.hasFnAttribute("wineh-parent"))
- return false;
-
// Classify the personality to see what kind of preparation we need.
Personality = classifyEHPersonality(Fn.getPersonalityFn());
@@ -173,10 +169,10 @@
}
static int addUnwindMapEntry(WinEHFuncInfo &FuncInfo, int ToState,
- const Value *V) {
+ const BasicBlock *BB) {
CxxUnwindMapEntry UME;
UME.ToState = ToState;
- UME.Cleanup = V;
+ UME.Cleanup = BB;
FuncInfo.CxxUnwindMap.push_back(UME);
return FuncInfo.getLastStateNumber();
}