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)
commitfdccfc1e199a2ec27e9bfc5b6839dcc37d33839c
tree035a67cfadf9010b8e903f413118fafdc5341cd7
parent774aadf1441f687f49ba0db351124f4b59fd8a38
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.

llvm-svn: 222217
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/test/DebugInfo/namespace.ll