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)
commitbb11391d04de1c4564ffb297e918490bbc1623d3
tree1e23e4cfd7c6ffd840d2151bf813d02e39044e53
parent4d6da2bb4fd7c9479d49590b7e66fec15eaf1e3d
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.

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