summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-06 01:57:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-06 01:57:34 +0000
commit70e2f181f57a3cfc22575524d90f83f408ff6967 (patch)
tree09b142fdf258cec30cdce5c29ff8b377f8796eba /lib/CodeGen/CodeGenFunction.cpp
parentb86b0ed5f2b8017e3329ca05b8494603fb525d98 (diff)
downloadclang-70e2f181f57a3cfc22575524d90f83f408ff6967.tar.gz
clang-70e2f181f57a3cfc22575524d90f83f408ff6967.tar.bz2
clang-70e2f181f57a3cfc22575524d90f83f408ff6967.tar.xz
Use private linkage for remaining GlobalVariables with private names.
This patch changes the remaining GlobalVariables using "\01L" and "\01l" prefixes to use private linkage. What is strange about them is that they currently use WeakAnyLinkage. There is no comment stating why and that is really odd since the symbols are completely hidden, so it doesn't make sense for them to be weak. Clang revisions like r63329, r63408, r63770, r65761 set the linkage to weak, but don't say why. I suspect they were just copying llvm-gcc. In llvm-gcc I found r58599 and r56322 that set DECL_WEAK, but they were just syncing from the apple gcc. I am not exactly sure what that means, since the last commit to svn://gcc.gnu.org/svn/gcc/branches/apple was in 2006, 2 years earlier. In summary, I have no idea why weak linkage was being used :-( To quote John McCall, "Let’s try without it and see" :-) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions