Allow DwarfCompileUnit::constructImportedEntityDIE to instanciate a GlobalVariable...
authorFrederic Riss <friss@apple.com>
Tue, 18 Nov 2014 02:46:11 +0000 (02:46 +0000)
committerFrederic Riss <friss@apple.com>
Tue, 18 Nov 2014 02:46:11 +0000 (02:46 +0000)
commit60a8349a7decd4ea46ecd122be06f5101a2f6ad4
treec0abba46432a9b22681f480634345e6ee9708af0
parentf0e7ccce9ecca7edbe121c69557730c2f60e21d0
Allow DwarfCompileUnit::constructImportedEntityDIE to instanciate a GlobalVariable DIE.

Usually global variables are in a retain list and instanciated before
any call to constructImportedEntityDIE is made. This isn't true for
forward declarations though.
The testcase for this change is generated by a clang patched to emit
such forward declarations (patch at http://reviews.llvm.org/D6173
which will land soon). The updated testcase tests more than just
global variables, it now tests every type of 'using' clause we
support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222217 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
test/DebugInfo/namespace.ll