summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-03-08 20:13:39 +0000
committerKuba Mracek <mracek@apple.com>2018-03-08 20:13:39 +0000
commitf0bcbfef5cc86e0f805ffeb64733e774f7c7bc0e (patch)
treea2937834bb75d556f8d05eb3725fb4faf96d4016 /llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
parentc286680032116b5163085e0158d572eb5b30df73 (diff)
downloadbcm5719-llvm-f0bcbfef5cc86e0f805ffeb64733e774f7c7bc0e.tar.gz
bcm5719-llvm-f0bcbfef5cc86e0f805ffeb64733e774f7c7bc0e.zip
Revert r327053.
llvm-svn: 327055
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp')
-rw-r--r--llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
index 6fa764ef089..87576996d7b 100644
--- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
@@ -2158,13 +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 *>(
- reinterpret_cast<GlobalValue **>(NewGlobals.data()),
- NewGlobals.size()));
-
std::string ELFUniqueModuleId =
(UseGlobalsGC && TargetTriple.isOSBinFormatELF()) ? getUniqueModuleId(&M)
: "";
OpenPOWER on IntegriCloud