[PATCH] D56674: [HWASAN] Invoke module pass from clang to instrument globals
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 14 10:28:56 PST 2019
evgeny777 created this revision.
evgeny777 added reviewers: kcc, eugenis.
This is clang part of D56672 <https://reviews.llvm.org/D56672>
https://reviews.llvm.org/D56674
Files:
lib/CodeGen/BackendUtil.cpp
Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp
+++ lib/CodeGen/BackendUtil.cpp
@@ -263,12 +263,14 @@
const CodeGenOptions &CGOpts = BuilderWrapper.getCGOpts();
bool Recover = CGOpts.SanitizeRecover.has(SanitizerKind::HWAddress);
PM.add(createHWAddressSanitizerPass(/*CompileKernel*/ false, Recover));
+ PM.add(createHWAddressSanitizerModulePass(/*CompileKernel*/ false));
}
static void addKernelHWAddressSanitizerPasses(const PassManagerBuilder &Builder,
legacy::PassManagerBase &PM) {
PM.add(createHWAddressSanitizerPass(
/*CompileKernel*/ true, /*Recover*/ true));
+ PM.add(createHWAddressSanitizerModulePass(/*CompileKernel*/ true));
}
static void addGeneralOptsForMemorySanitizer(const PassManagerBuilder &Builder,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56674.181591.patch
Type: text/x-patch
Size: 881 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190114/f184f208/attachment.bin>
More information about the llvm-commits
mailing list