diff options
author | Leonard Chan <leonardchan@google.com> | 2018-10-26 22:51:51 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2018-10-26 22:51:51 +0000 |
commit | eebecb3214eef1137c97d269d7f1691250bd5560 (patch) | |
tree | 3539fa8bdc3b07c57091dbd7a31504e530473c94 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | f239a44ac90f04099bfe20bf795f2ad2b5888af4 (diff) | |
download | bcm5719-llvm-eebecb3214eef1137c97d269d7f1691250bd5560.tar.gz bcm5719-llvm-eebecb3214eef1137c97d269d7f1691250bd5560.zip |
Revert "[PassManager/Sanitizer] Enable usage of ported AddressSanitizer passes with -fsanitize=address"
This reverts commit 8d6af840396f2da2e4ed6aab669214ae25443204 and commit
b78d19c287b6e4a9abc9fb0545de9a3106d38d3d which causes slower build times
by initializing the AddressSanitizer on every function run.
The corresponding revisions are https://reviews.llvm.org/D52814 and
https://reviews.llvm.org/D52739.
llvm-svn: 345433
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
-rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index ee9fa844519..fd9a95b7199 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -52,7 +52,6 @@ #include "llvm/Transforms/IPO/ThinLTOBitcodeWriter.h" #include "llvm/Transforms/InstCombine/InstCombine.h" #include "llvm/Transforms/Instrumentation.h" -#include "llvm/Transforms/Instrumentation/AddressSanitizerPass.h" #include "llvm/Transforms/Instrumentation/BoundsChecking.h" #include "llvm/Transforms/Instrumentation/GCOVProfiler.h" #include "llvm/Transforms/ObjCARC.h" @@ -1023,16 +1022,6 @@ void EmitAssemblyHelper::EmitAssemblyWithNewPassManager( CodeGenOpts.DebugPassManager); } } - - if (LangOpts.Sanitize.has(SanitizerKind::Address)) { - bool Recover = CodeGenOpts.SanitizeRecover.has(SanitizerKind::Address); - MPM.addPass(createModuleToFunctionPassAdaptor( - AddressSanitizerPass(/*CompileKernel=*/false, Recover, - CodeGenOpts.SanitizeAddressUseAfterScope))); - bool ModuleUseAfterScope = asanUseGlobalsGC(TargetTriple, CodeGenOpts); - MPM.addPass(AddressSanitizerPass(/*CompileKernel=*/false, Recover, - ModuleUseAfterScope)); - } } // FIXME: We still use the legacy pass manager to do code generation. We |