diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-28 18:05:47 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2025-08-28 19:36:51 +0000 |
| commit | 23e72ab41e27842eae0d60a6f4750c5151aabcbc (patch) | |
| tree | 724de3863bbb0542a0652706a65523ad2a1d3503 /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | |
| parent | d76cff3f06f4de2e760eee3130c8a393fa4a124f (diff) | |
| download | rust-23e72ab41e27842eae0d60a6f4750c5151aabcbc.tar.gz rust-23e72ab41e27842eae0d60a6f4750c5151aabcbc.zip | |
Move ___asan_globals_registered export
All other sanitizer symbols are handled in prepare_lto already.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp index 8c34052770e..dd492325814 100644 --- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp @@ -1226,12 +1226,6 @@ extern "C" void LLVMRustPrintPasses() { extern "C" void LLVMRustRunRestrictionPass(LLVMModuleRef M, char **Symbols, size_t Len) { auto PreserveFunctions = [=](const GlobalValue &GV) { - // Preserve LLVM-injected, ASAN-related symbols. - // See also https://github.com/rust-lang/rust/issues/113404. - if (GV.getName() == "___asan_globals_registered") { - return true; - } - // Preserve symbols exported from Rust modules. for (size_t I = 0; I < Len; I++) { if (GV.getName() == Symbols[I]) { |
