Fix emission of debug data for global variables. getContext() on DIGlobalVariables...
authorJames Molloy <james.molloy@arm.com>
Mon, 26 Sep 2011 17:40:42 +0000 (17:40 +0000)
committerJames Molloy <james.molloy@arm.com>
Mon, 26 Sep 2011 17:40:42 +0000 (17:40 +0000)
commit439780eeaef1a2c6a1105fb705a27c5c819e8d0e
tree46b65cbbddb15ffedd5e7fd1ab952d194a2e5b04
parent6272c5d874bb2b342b02a16aacc9806b4ac55ffe
Fix emission of debug data for global variables. getContext() on DIGlobalVariables is not valid any more.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140539 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
test/DebugInfo/2011-09-26-GlobalVarContext.ll [new file with mode: 0644]