Improve llvm.dbg.declare intrinsic by referring directly to the storage in its first...
authorVictor Hernandez <vhernandez@apple.com>
Fri, 15 Jan 2010 19:04:09 +0000 (19:04 +0000)
committerVictor Hernandez <vhernandez@apple.com>
Fri, 15 Jan 2010 19:04:09 +0000 (19:04 +0000)
commit3a32865d58f015e7058444eab7085195c34da95a
tree4f6fd059942b2a5290ec3380adb686cca69f58c9
parent3752d2fe34a8d576203f8034baeabb02e65c87bc
Improve llvm.dbg.declare intrinsic by referring directly to the storage in its first argument, via function-local metadata (instead of via a bitcast).
This patch also cleans up code that expects there to be a bitcast in the first argument and testcases that call llvm.dbg.declare.
It also strips old llvm.dbg.declare intrinsics that did not pass metadata as the first argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93531 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/DebugInfo.h
include/llvm/IntrinsicInst.h
include/llvm/Intrinsics.td
lib/Analysis/DebugInfo.cpp
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/VMCore/AutoUpgrade.cpp
lib/VMCore/IntrinsicInst.cpp
lib/VMCore/Verifier.cpp
test/Assembler/functionlocal-metadata.ll
test/DebugInfo/2009-10-16-Scope.ll
test/DebugInfo/printdbginfo2.ll