[PATCH] D28250: [asan] Change the visibility of ___asan_globals_registered to hidden

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 14:13:56 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL291289: [asan] Change the visibility of ___asan_globals_registered to hidden (authored by kuba.brecka).

Changed prior to commit:
  https://reviews.llvm.org/D28250?vs=82935&id=83426#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D28250

Files:
  llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp


Index: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -1818,6 +1818,7 @@
     RegisteredFlag = new GlobalVariable(
         M, IntptrTy, false, GlobalVariable::CommonLinkage,
         ConstantInt::get(IntptrTy, 0), kAsanGlobalsRegisteredFlagName);
+    RegisteredFlag->setVisibility(GlobalVariable::HiddenVisibility);
 
     // Update llvm.compiler.used, adding the new liveness globals. This is
     // needed so that during LTO these variables stay alive. The alternative


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28250.83426.patch
Type: text/x-patch
Size: 695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170106/a9d8cb1f/attachment.bin>


More information about the llvm-commits mailing list