]> granicus.if.org Git - clang/commit
DebugInfo: Avoid emitting constnants for every use
authorDavid Blaikie <dblaikie@gmail.com>
Sat, 5 Apr 2014 07:23:17 +0000 (07:23 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sat, 5 Apr 2014 07:23:17 +0000 (07:23 +0000)
commitf4a3b2313e8347e8e43a0c285bbb5e3fd431cdab
tree207c56c3dcc7b5b9e7248b3de51c119f701b8369
parentb2887d4c99917625f6361f0faa386fe064c3b31c
DebugInfo: Avoid emitting constnants for every use

While the folding set would deduplicate the nodes themselves and LLVM
would handle not emitting the same global twice, it still meant creating
a long/redundant list of global variables.

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