Emit debug info for global constants whose address is taken exactly once.
authorAdrian Prantl <aprantl@apple.com>
Wed, 9 Nov 2016 00:42:03 +0000 (00:42 +0000)
committerAdrian Prantl <aprantl@apple.com>
Wed, 9 Nov 2016 00:42:03 +0000 (00:42 +0000)
commit338ef7a82c720b73faf64b31605aa2709b0cf14a
treebb74c6b600ab7fabebdbe3b64300353895883b4a
parenta50bc7fddb321214e16babe0a4e1964422c81454
Emit debug info for global constants whose address is taken exactly once.

Add a check to the DeclCache before emitting debug info for a
GlobalVariable a second time and just attach the previsously created one to it.

<rdar://problem/26721101>

llvm-svn: 286322
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGen/debug-info-global-constant.c [new file with mode: 0644]