summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2015-09-11 17:27:52 +0000
committerReid Kleckner <rnk@google.com>2015-09-11 17:27:52 +0000
commit5dbee7baef101399992f4cea8a8ebbb94b1f3e39 (patch)
tree560b131e6676fc83fe8c7fdecf3fba776bd53ab5 /llvm/lib
parent5c8bd88a4c3ad31e64b5a7100c9fc1785f208031 (diff)
downloadbcm5719-llvm-5dbee7baef101399992f4cea8a8ebbb94b1f3e39.tar.gz
bcm5719-llvm-5dbee7baef101399992f4cea8a8ebbb94b1f3e39.zip
[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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp
index 2f00da8ea40..3aeabf8bf17 100644
--- a/llvm/lib/IR/AsmWriter.cpp
+++ b/llvm/lib/IR/AsmWriter.cpp
@@ -2847,7 +2847,7 @@ void AssemblyWriter::printInstruction(const Instruction &I) {
Out << ", ";
writeOperand(CPI->getArgOperand(Op), /*PrintType=*/true);
}
- Out << "] to ";
+ Out << "]\n to ";
writeOperand(CPI->getNormalDest(), /*PrintType=*/true);
Out << " unwind ";
writeOperand(CPI->getUnwindDest(), /*PrintType=*/true);
OpenPOWER on IntegriCloud