[cfe-commits] [PATCH] Split AddressSanitizer into two passes (FunctionPass, ModulePass), Clang part

Kostya Serebryany kcc at google.com
Tue Nov 27 05:27:51 PST 2012


Hi chandlerc,

http://llvm-reviews.chandlerc.com/D138

Files:
  lib/CodeGen/BackendUtil.cpp

Index: lib/CodeGen/BackendUtil.cpp
===================================================================
--- lib/CodeGen/BackendUtil.cpp
+++ lib/CodeGen/BackendUtil.cpp
@@ -159,7 +159,8 @@
 
 static void addAddressSanitizerPass(const PassManagerBuilder &Builder,
                                     PassManagerBase &PM) {
-  PM.add(createAddressSanitizerPass());
+  PM.add(createAddressSanitizerFunctionPass());
+  PM.add(createAddressSanitizerModulePass());
 }
 
 static void addThreadSanitizerPass(const PassManagerBuilder &Builder,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138.1.patch
Type: text/x-patch
Size: 534 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121127/05ce6cac/attachment.bin>


More information about the cfe-commits mailing list