[llvm] r291289 - [asan] Change the visibility of ___asan_globals_registered to hidden
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 14:02:59 PST 2017
Author: kuba.brecka
Date: Fri Jan 6 16:02:58 2017
New Revision: 291289
URL: http://llvm.org/viewvc/llvm-project?rev=291289&view=rev
Log:
[asan] Change the visibility of ___asan_globals_registered to hidden
This flag is used to track global registration in Mach-O and it doesn't need to be exported and visible.
Differential Revision: https://reviews.llvm.org/D28250
Modified:
llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=291289&r1=291288&r2=291289&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Fri Jan 6 16:02:58 2017
@@ -1818,6 +1818,7 @@ bool AddressSanitizerModule::InstrumentG
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
More information about the llvm-commits
mailing list