]> granicus.if.org Git - clang/commit
Make internal/private GVs implicitly dso_local.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Jan 2018 22:15:12 +0000 (22:15 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 11 Jan 2018 22:15:12 +0000 (22:15 +0000)
commitffd83ec964135e59d201569af029b28b998f4549
tree7edee74f2133701ee4f768f42a5fc226ec993305
parent568cb88091f86b41872e912622694a5a3f2632fa
Make internal/private GVs implicitly dso_local.

While updating clang tests for having clang set dso_local I noticed
that:

- There are *a lot* of tests to update.
- Many of the updates are redundant.

They are redundant because a GV is "obviously dso_local". This patch
starts formalizing that a bit by requiring that internal and private
GVs be dso_local too. Since they all are, we don't have to print
dso_local to the textual representation, making it a bit more compact
and easier to read.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322318 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
test/CodeGenCXX/microsoft-abi-static-initializers.cpp
test/OpenMP/target_codegen_registration.cpp
test/OpenMP/target_parallel_codegen_registration.cpp
test/OpenMP/target_parallel_for_codegen_registration.cpp
test/OpenMP/target_parallel_for_simd_codegen_registration.cpp
test/OpenMP/target_simd_codegen_registration.cpp
test/OpenMP/target_teams_codegen_registration.cpp
test/OpenMP/target_teams_distribute_codegen_registration.cpp
test/OpenMP/target_teams_distribute_simd_codegen_registration.cpp