Don't set unnamed_addr in CreateRuntimeVariable.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 May 2014 23:33:27 +0000 (23:33 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 22 May 2014 23:33:27 +0000 (23:33 +0000)
commitb73c973d3b86eacdc08a69266de40fe91ad992c7
tree0faa5859dd76a7c505a1b04d3d6dc06dec8ee1e3
parent6a0bc9954218d9e0a6be0f99d062919099a1938e
Don't set unnamed_addr in CreateRuntimeVariable.

This was fairly broken. For example,

@__dso_handle would or would not get an unnamed_addr depending on how many
global destructors were used in a translation unit.

The consensus was that not every runtime variable is unnamed_addr and that
__dso_handle handle should not be, so just don't add unnamed_addr in
CreateRuntimeVariable.

llvm-svn: 209484
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/CodeGenModule.h
clang/test/CodeGenCXX/global-init.cpp