diff options
author | Kostya Serebryany <kcc@google.com> | 2011-11-16 17:34:26 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2011-11-16 17:34:26 +0000 |
commit | 1b4eca67e073f0beefb9924cbe6c65427869f1fa (patch) | |
tree | d2dc203e793641cc474ee71969ceadd07d24f0ac /include/clang/Frontend/CodeGenOptions.h | |
parent | 2ad226bdc847df6b6b6e4f832856478ab63bb3dc (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.h | 2 |
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; |