diff options
author | Mike Stump <mrs@apple.com> | 2009-04-01 20:28:16 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-04-01 20:28:16 +0000 |
commit | 2add47387d39ee6c40dcb0e9f3d51c27ad1e113c (patch) | |
tree | 4f0d5830625dfe9036e5c6b051c21b549d3772d3 /include/clang/Basic/LangOptions.h | |
parent | 91a0b51438e5259a79d68d7450c453827beed9e2 (diff) |
Add -ftrapv support, patch from David Chisnall; well all except the
clang option code that is and two bug fixes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r-- | include/clang/Basic/LangOptions.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h index b49d500470..818ccda48b 100644 --- a/include/clang/Basic/LangOptions.h +++ b/include/clang/Basic/LangOptions.h @@ -59,6 +59,9 @@ public: unsigned MathErrno : 1; // Math functions must respect errno // (modulo the platform support). + unsigned OverflowChecking : 1; // Extension to call a handler function when + // integer arithmetic overflows. + unsigned HeinousExtensions : 1; // Extensions that we really don't like and // may be ripped out at any time. private: @@ -87,6 +90,8 @@ public: EmitAllDecls = 0; MathErrno = 1; + OverflowChecking = 0; + InstantiationDepth = 99; } |