diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-11 21:44:37 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-11 21:44:37 +0000 |
| commit | b1e879c80f02e9c4bbbba124bf2c6379ca9c8246 (patch) | |
| tree | 6a4d7c92d38e1caac0fe03f7f2ec96035a8de80b /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 447cb38fbe08f4ca701ab14439804e9d1a8bc33e (diff) | |
| download | llvm-b1e879c80f02e9c4bbbba124bf2c6379ca9c8246.zip llvm-b1e879c80f02e9c4bbbba124bf2c6379ca9c8246.tar.gz llvm-b1e879c80f02e9c4bbbba124bf2c6379ca9c8246.tar.bz2 | |
Set unnamed_addr for type infos that we are confortable marking as hidden. I
think it is safe to mark all type infos with unnamed_addr, but I am not sure.
llvm-svn: 123275
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 5d549c9..9ed3150 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -251,6 +251,7 @@ void CodeGenModule::setTypeVisibility(llvm::GlobalValue *GV, // Otherwise, drop the visibility to hidden. GV->setVisibility(llvm::GlobalValue::HiddenVisibility); + GV->setUnnamedAddr(true); } llvm::StringRef CodeGenModule::getMangledName(GlobalDecl GD) { |
