diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-22 23:33:27 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-05-22 23:33:27 +0000 |
| commit | 71e63e367d168dded681801b33d3e70e0e29d345 (patch) | |
| tree | d15d700aed8515d6c23ffa5143fc6bda4817cdf6 /lib/CodeGen/CodeGenModule.h | |
| parent | 80866d0425fd81a9fc2932f37c6e35432b220f14 (diff) | |
| download | clang-71e63e367d168dded681801b33d3e70e0e29d345.tar.gz clang-71e63e367d168dded681801b33d3e70e0e29d345.tar.bz2 clang-71e63e367d168dded681801b33d3e70e0e29d345.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
| -rw-r--r-- | lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index bb7f1899d5..7b467291e4 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -1013,8 +1013,7 @@ private: llvm::Constant *GetOrCreateLLVMGlobal(StringRef MangledName, llvm::PointerType *PTy, - const VarDecl *D, - bool UnnamedAddr = false); + const VarDecl *D); /// Set attributes which are common to any form of a global definition (alias, /// Objective-C method, function, global variable). |
