LoopVectorize: Use static function instead of DebugLocSetter class
authorArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 28 Jun 2013 16:26:54 +0000 (16:26 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Fri, 28 Jun 2013 16:26:54 +0000 (16:26 +0000)
commitb0f11e370141c98d24493760e72f9c0d6959150d
treee91b4833dea481584b02a6eb675f05140e80233f
parente3d4cbc7d25061441adafa47450a31571c87bf85
LoopVectorize: Use static function instead of DebugLocSetter class

I used the class to safely reset the state of the builder's debug location.  I
think I have caught all places where we need to set the debug location to a new
one. Therefore, we can replace the class by a function that just sets the debug
location.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp