[IR] Print the label operands of a catchpad like an invoke
authorReid Kleckner <rnk@google.com>
Fri, 11 Sep 2015 17:27:52 +0000 (17:27 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 11 Sep 2015 17:27:52 +0000 (17:27 +0000)
commit5dbee7baef101399992f4cea8a8ebbb94b1f3e39
tree560b131e6676fc83fe8c7fdecf3fba776bd53ab5
parent5c8bd88a4c3ad31e64b5a7100c9fc1785f208031
[IR] Print the label operands of a catchpad like an invoke

The rest of the EH pads are fine, since they have at most one label and
take fewer operands for the personality.

Old catchpad vs. new:
  %5 = catchpad [i8* bitcast (i32 ()* @"\01?filt$0@0@main@@" to i8*)] to label %__except.ret.10 unwind label %catchendblock.9
-----
  %5 = catchpad [i8* bitcast (i32 ()* @"\01?filt$0@0@main@@" to i8*)]
          to label %__except.ret.10 unwind label %catchendblock.9

llvm-svn: 247433
llvm/lib/IR/AsmWriter.cpp
llvm/test/Bitcode/compatibility.ll
llvm/test/CodeGen/WinEH/wineh-cloning.ll
llvm/test/Transforms/SimplifyCFG/empty-cleanuppad.ll