[WinEH] Add codegen support for cleanuppad and cleanupret
[oota-llvm.git] / include / llvm / CodeGen / WinEHFuncInfo.h
index 369faddd647f317910b928fe9b7f5f88c051fe83..31021f12858f4956c09a7fc135b719c0a905c9ca 100644 (file)
@@ -116,14 +116,14 @@ void parseEHActions(const IntrinsicInst *II,
 // The following structs respresent the .xdata for functions using C++
 // exceptions on Windows.
 
+typedef PointerUnion<const BasicBlock *, MachineBasicBlock *> MBBOrBasicBlock;
+typedef PointerUnion<const Value *, MachineBasicBlock *> ValueOrMBB;
+
 struct WinEHUnwindMapEntry {
   int ToState;
-  const Value *Cleanup;
+  ValueOrMBB Cleanup;
 };
 
-typedef PointerUnion<const BasicBlock *, MachineBasicBlock *> MBBOrBasicBlock;
-typedef PointerUnion<const Value *, MachineBasicBlock *> ValueOrMBB;
-
 /// Similar to WinEHUnwindMapEntry, but supports SEH filters.
 struct SEHUnwindMapEntry {
   /// If unwinding continues through this handler, transition to the handler at