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 | b73c973d3b86eacdc08a69266de40fe91ad992c7 (patch) | |
tree | 0faa5859dd76a7c505a1b04d3d6dc06dec8ee1e3 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 6a0bc9954218d9e0a6be0f99d062919099a1938e (diff) | |
download | bcm5719-llvm-b73c973d3b86eacdc08a69266de40fe91ad992c7.tar.gz bcm5719-llvm-b73c973d3b86eacdc08a69266de40fe91ad992c7.zip |
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index bb7f1899d59..7b467291e42 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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). |