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)
commit448c066eea867a4e670a24bf505eae93eead59af
tree6961db20e146f9a7cdbf6f24af91aca485dc49e0
parent89872e99a51761419440e16c839f4e8b6b4e6fce
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...

llvm-svn: 214761
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/lib/CodeGen/LexicalScopes.cpp
llvm/lib/IR/DebugInfo.cpp