summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-10 19:46:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-10 19:46:49 +0000
commit08e13e4488cde76fc51f942e773874627a88eeae (patch)
treeec5594c396378a6e99e7e38803609e8fa51bda7a /include/llvm/Transforms
parentf0d19bd1291ee1d2ffee4bbe0aef12b814aff789 (diff)
downloadllvm-08e13e4488cde76fc51f942e773874627a88eeae.tar.gz
llvm-08e13e4488cde76fc51f942e773874627a88eeae.tar.bz2
llvm-08e13e4488cde76fc51f942e773874627a88eeae.tar.xz
Don't use a red zone for code coverage if the user specified `-mno-red-zone'.
The `-mno-red-zone' flag wasn't being propagated to the functions that code coverage generates. This allowed some of them to use the red zone when that wasn't allowed. <rdar://problem/12843084> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169754 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms')
-rw-r--r--include/llvm/Transforms/Instrumentation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Instrumentation.h b/include/llvm/Transforms/Instrumentation.h
index 3e19991745..cdd1e03cde 100644
--- a/include/llvm/Transforms/Instrumentation.h
+++ b/include/llvm/Transforms/Instrumentation.h
@@ -33,7 +33,8 @@ ModulePass *createPathProfilerPass();
// Insert GCOV profiling instrumentation
ModulePass *createGCOVProfilerPass(bool EmitNotes = true, bool EmitData = true,
bool Use402Format = false,
- bool UseExtraChecksum = false);
+ bool UseExtraChecksum = false,
+ bool NoRedZone = false);
// Insert AddressSanitizer (address sanity checking) instrumentation
FunctionPass *createAddressSanitizerFunctionPass(
@@ -41,8 +42,10 @@ FunctionPass *createAddressSanitizerFunctionPass(
bool CheckLifetime = false, StringRef BlacklistFile = StringRef());
ModulePass *createAddressSanitizerModulePass(
bool CheckInitOrder = false, StringRef BlacklistFile = StringRef());
+
// Insert MemorySanitizer instrumentation (detection of uninitialized reads)
FunctionPass *createMemorySanitizerPass();
+
// Insert ThreadSanitizer (race detection) instrumentation
FunctionPass *createThreadSanitizerPass();