]> granicus.if.org Git - clang/commit
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)
commit2123f44cb9cbd94dd7ab83812281cc062f52b938
tree5f95af977f0b332835b13f983443ec7af9cfc886
parent8a8f86873029d28fd7ab8c1edecbc93da6a638a1
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>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286322 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGen/debug-info-global-constant.c [new file with mode: 0644]