Pull the creation of the "RewindFunction" function out of the loop. It's only
authorBill Wendling <isanbard@gmail.com>
Mon, 14 Sep 2009 20:52:37 +0000 (20:52 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 14 Sep 2009 20:52:37 +0000 (20:52 +0000)
commit43488710a8dc76b39f9f3b628c2fdd5d34aa0dbb
tree25e48c121bb3706570e2b3615a7fc44fc619ab33
parentc43fd5a68ff77c1d996b520dc494336a9d3beaa0
Pull the creation of the "RewindFunction" function out of the loop. It's only
created once, so shouldn't be stuck in the middle of the loop. Also early exit
if there are no uses of UnwindInst in the function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81785 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/DwarfEHPrepare.cpp