OSDN Git Service

[DebugInfo] Add comments to phi dbg.value tracking code, NFC
authorReid Kleckner <rnk@google.com>
Tue, 27 Sep 2016 18:45:31 +0000 (18:45 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 27 Sep 2016 18:45:31 +0000 (18:45 +0000)
commita02ae2b916538279201e6aa19acf0c8b85617a38
treecdc15ab64c5603e6617891de7cc0c23ef9a4adb7
parent8263469827bbcb4f1a10db9f33513b3d63023dcf
[DebugInfo] Add comments to phi dbg.value tracking code, NFC

LLVM developers might be surprised to learn that there are blocks
without valid insertion points (catchswitch), so it seems worth calling
that out explicitly.  Also add a FIXME about what we should really be
doing if we ever need to make optimized Windows EH code debuggable.

While I'm here, make auto usage more consistent with LLVM standards and
avoid an unecessary call to insertBefore.

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