Two minor improvements:
authorChris Lattner <sabre@nondot.org>
Wed, 12 May 2004 03:22:33 +0000 (03:22 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 May 2004 03:22:33 +0000 (03:22 +0000)
commit5b01e298ed42d5ce6aaf7634618b5e1769766b21
tree1f0d839a891e39769a142c1870729360d706866c
parentb83c0f3f6391e5f8039305ec267f7cd43ffb4de9
Two minor improvements:
  1. Get rid of the silly abort block.  When doing bb extraction, we get one
     abort block for every block extracted, which is kinda annoying.
  2. If the switch ends up having a single destination, turn it into an
     unconditional branch.

I would like to add support for conditional branches, but to do this we will
want to have the function return a bool instead of a ushort.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13478 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/CodeExtractor.cpp