Reapply "DebugInfo: Ensure that all debug location scope chains from instructions...
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 4 Aug 2014 19:30:08 +0000 (19:30 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 4 Aug 2014 19:30:08 +0000 (19:30 +0000)
commitdf5eef292db910eacbb8fd0a82e4f35a6b9065ff
tree42ee40389ebf8dc0ff3a7eb0f5faef3d14670a19
parentfa76ba82f254a4f30ce0bff200e8b91b3aaa3ecc
Reapply "DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself."

Originally reverted in r213432 with flakey failures on an ASan self-host
build. After reduction it seems to be the same issue fixed in r213805
(ArgPromo + DebugInfo: Handle updating debug info over multiple
applications of argument promotion) and r213952 (by having
LiveDebugVariables strip dbg_value intrinsics in functions that are not
described by debug info). Though I cannot explain why this failure was
flakey...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214761 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/LexicalScopes.cpp
lib/IR/DebugInfo.cpp