diff options
author | Kostya Serebryany <kcc@google.com> | 2012-11-28 10:31:36 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-11-28 10:31:36 +0000 |
commit | 1416edc30adbd53b2be863f7f3de56de4a4c9d0a (patch) | |
tree | 437a09f45ab8628db889db6f1ba9e7515dc1d970 /include | |
parent | 3defc0bfa600cc253f0cba0fe781aa49435d968a (diff) | |
download | external_llvm-1416edc30adbd53b2be863f7f3de56de4a4c9d0a.zip external_llvm-1416edc30adbd53b2be863f7f3de56de4a4c9d0a.tar.gz external_llvm-1416edc30adbd53b2be863f7f3de56de4a4c9d0a.tar.bz2 |
[asan] Split AddressSanitizer into two passes (FunctionPass, ModulePass), LLVM part. This requires a clang part which will follow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/InitializePasses.h | 1 | ||||
-rw-r--r-- | include/llvm/Transforms/Instrumentation.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/InitializePasses.h b/include/llvm/InitializePasses.h index e06b892..bde2f2c 100644 --- a/include/llvm/InitializePasses.h +++ b/include/llvm/InitializePasses.h @@ -110,6 +110,7 @@ void initializeExpandPostRAPass(PassRegistry&); void initializePathProfilerPass(PassRegistry&); void initializeGCOVProfilerPass(PassRegistry&); void initializeAddressSanitizerPass(PassRegistry&); +void initializeAddressSanitizerModulePass(PassRegistry&); void initializeThreadSanitizerPass(PassRegistry&); void initializeEarlyCSEPass(PassRegistry&); void initializeExpandISelPseudosPass(PassRegistry&); diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h index 3558251..e4c60bf 100644 --- a/include/llvm/Transforms/Instrumentation.h +++ b/include/llvm/Transforms/Instrumentation.h @@ -34,7 +34,8 @@ ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true, bool UseExtraChecksum = false); // Insert AddressSanitizer (address sanity checking) instrumentation -FunctionPass *createAddressSanitizerPass(); +FunctionPass *createAddressSanitizerFunctionPass(); +ModulePass *createAddressSanitizerModulePass(); // Insert ThreadSanitizer (race detection) instrumentation FunctionPass *createThreadSanitizerPass(); |