aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/CodeGenOptions.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2011-11-16 17:34:26 +0000
committerKostya Serebryany <kcc@google.com>2011-11-16 17:34:26 +0000
commit1b4eca67e073f0beefb9924cbe6c65427869f1fa (patch)
treed2dc203e793641cc474ee71969ceadd07d24f0ac /include/clang/Frontend/CodeGenOptions.h
parent2ad226bdc847df6b6b6e4f832856478ab63bb3dc (diff)
Add -f[no-]address-sanitizer flag
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/CodeGenOptions.h')
-rw-r--r--include/clang/Frontend/CodeGenOptions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Frontend/CodeGenOptions.h b/include/clang/Frontend/CodeGenOptions.h
index 9962ea8cf9..80720d4e36 100644
--- a/include/clang/Frontend/CodeGenOptions.h
+++ b/include/clang/Frontend/CodeGenOptions.h
@@ -35,6 +35,7 @@ public:
Mixed = 2
};
+ unsigned AddressSanitizer : 1; /// Enable AddressSanitizer.
unsigned AsmVerbose : 1; /// -dA, -fverbose-asm.
unsigned ObjCAutoRefCountExceptions : 1; /// Whether ARC should be EH-safe.
unsigned CUDAIsDevice : 1; /// Set when compiling for CUDA device.
@@ -151,6 +152,7 @@ public:
public:
CodeGenOptions() {
+ AddressSanitizer = 0;
AsmVerbose = 0;
CUDAIsDevice = 0;
CXAAtExit = 1;