summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-03-08 17:32:00 +0000
committerKuba Mracek <mracek@apple.com>2018-03-08 17:32:00 +0000
commite834b2287404fecf2dfa341f883d69221787ea18 (patch)
tree9d8fccbdd7229c429663c5ea3e2079461873a1d4 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent0fe43695e5e366699df9b2005d69dea37ba1db45 (diff)
downloadbcm5719-llvm-e834b2287404fecf2dfa341f883d69221787ea18.tar.gz
bcm5719-llvm-e834b2287404fecf2dfa341f883d69221787ea18.zip
Revert r327029
llvm-svn: 327033
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 6a8ba6f6c43..87576996d7b 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -2158,12 +2158,6 @@ bool AddressSanitizerModule::InstrumentGlobals(IRBuilder<> &IRB, Module &M, bool
Initializers[i] = Initializer;
}
- // Add instrumented globals to llvm.compiler.used list to avoid LTO from
- // ConstantMerge'ing them.
- appendToCompilerUsed(
- M, ArrayRef<GlobalValue *>(cast<GlobalValue *>(NewGlobals.data()),
- NewGlobals.size()));
-
std::string ELFUniqueModuleId =
(UseGlobalsGC && TargetTriple.isOSBinFormatELF()) ? getUniqueModuleId(&M)
: "";
OpenPOWER on IntegriCloud