[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)
commit8ae5f645e78b086ced0a6bc99b9bd07205cdb73e
treec36b9c05ec2c38571fe32b028b4d08246b7ea881
parent74869be2733581245a0e645087b9a55f13e0fec9
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247433 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AsmWriter.cpp
test/Bitcode/compatibility.ll
test/CodeGen/WinEH/wineh-cloning.ll
test/Transforms/SimplifyCFG/empty-cleanuppad.ll