Global variables don't have a corresponding llvm.dbg.declare, yet it is possible
authorTorok Edwin <edwintorok@gmail.com>
Tue, 10 Mar 2009 13:41:26 +0000 (13:41 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 10 Mar 2009 13:41:26 +0000 (13:41 +0000)
commitff7d0e9509cf8f359fe14c05dc29a05a293ce88f
treec14372a112c7b3779e087c48e9279ef31afe068f
parentc29f0c7ddea5a7d5e4f01b47735cb9acdc9ec4df
Global variables don't have a corresponding llvm.dbg.declare, yet it is possible
to obtain debug info about them.
Introduce helpers to access debug info for global variables. Also introduce a
helper that works for both local and global variables.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66541 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/DebugInfo.h
lib/Analysis/DbgInfoPrinter.cpp
lib/Analysis/DebugInfo.cpp
test/DebugInfo/printdbginfo.ll
test/DebugInfo/printdbginfo2.ll [new file with mode: 0644]