]> granicus.if.org Git - clang/commit
Move the logic to avoid double global emission from Sema to CodeGen
authorReid Kleckner <reid@kleckner.net>
Wed, 15 Apr 2015 01:08:06 +0000 (01:08 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 15 Apr 2015 01:08:06 +0000 (01:08 +0000)
commitd65179533012c1ab7323c6353c0a14bf424df6af
tree57888c3404696f571307d1b17a2b7efae00e6a1a
parent18aa9e9198e979b6d2d9a6087188cdcdbd29aea3
Move the logic to avoid double global emission from Sema to CodeGen

Reverts the code changes from r234675 but keeps the test case.

We were already maintaining a DenseMap of globals with dynamic
initializers anyway.

Fixes the test case from PR23234.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234961 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDeclCXX.cpp
lib/CodeGen/CodeGenModule.h
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/CodeGenCXX/auto-variable-template.cpp [new file with mode: 0644]