DebugInfo: Don't emit a 'global variable' when a static member declaration is referen...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Nov 2014 19:42:40 +0000 (19:42 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 19 Nov 2014 19:42:40 +0000 (19:42 +0000)
commit423eb5a6a5a60a67bc5e1030a233e7977fc15b3f
treead3d84278b26f5112f7175ea86f7ddec1fb37f07
parent3563938ee46c0d3f33436ec65a870c082e855f98
DebugInfo: Don't emit a 'global variable' when a static member declaration is referenced without a definition, just ensure the enclosing class (with the static member declaration) is emitted.

Addresses PR21511 by emitting appropriate metadata rather than
faux-global definitions for a variable that doesn't have a definition.

llvm-svn: 222377
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-class.cpp
clang/test/CodeGenCXX/debug-info-static-member.cpp