diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-04-25 16:53:59 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-04-25 16:53:59 +0000 |
commit | 280a6e607d8eb7401749a92db624a82de47da777 (patch) | |
tree | 040d0b406293ebcc56801552313daa6136ee5e6c /lib/VMCore/AsmWriter.cpp | |
parent | 419ace9bda6abaaa65560708064b210b4e48880f (diff) | |
download | external_llvm-280a6e607d8eb7401749a92db624a82de47da777.zip external_llvm-280a6e607d8eb7401749a92db624a82de47da777.tar.gz external_llvm-280a6e607d8eb7401749a92db624a82de47da777.tar.bz2 |
Remove 'unwinds to' support from mainline. This patch undoes r47802 r47989
r48047 r48084 r48085 r48086 r48088 r48096 r48099 r48109 and r48123.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50265 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 11586b5..7af26d0 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -1163,18 +1163,9 @@ void AssemblyWriter::printArgument(const Argument *Arg, /// printBasicBlock - This member is called for each basic block in a method. /// void AssemblyWriter::printBasicBlock(const BasicBlock *BB) { - if (BB->hasName()) // Print out the label if it exists... - Out << '\n' << getLLVMName(BB->getName(), LabelPrefix) << ':'; - - if (const BasicBlock* unwindDest = BB->getUnwindDest()) { - if (BB->hasName()) - Out << ' '; - - Out << "unwinds to"; - writeOperand(unwindDest, false); - } - - if (!BB->hasName() && !BB->use_empty()) { // Don't print block # of no uses... + if (BB->hasName()) { // Print out the label if it exists... + Out << "\n" << getLLVMName(BB->getName(), LabelPrefix) << ':'; + } else if (!BB->use_empty()) { // Don't print block # of no uses... Out << "\n; <label>:"; int Slot = Machine.getLocalSlot(BB); if (Slot != -1) |