summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-26 21:25:03 +0000
committerChris Lattner <sabre@nondot.org>2010-06-26 21:25:03 +0000
commit51924e517bd2d25faea6ef873db3c59ec4d09bf8 (patch)
tree7d971b3e55a000a23d28dac62cc985f20f05be06 /clang/lib/Frontend/PCHWriter.cpp
parent217e056e409f51bc64a82334e72bed0f14a51270 (diff)
downloadbcm5719-llvm-51924e517bd2d25faea6ef873db3c59ec4d09bf8.tar.gz
bcm5719-llvm-51924e517bd2d25faea6ef873db3c59ec4d09bf8.zip
Implement support for -fwrapv, rdar://7221421
As part of this, pull together trapv handling into the same enum. This also add support for NSW multiplies. This also makes PCH disagreement on overflow behavior silent, since it really doesn't matter except for warnings and codegen (no macros get defined etc). llvm-svn: 106956
Diffstat (limited to 'clang/lib/Frontend/PCHWriter.cpp')
-rw-r--r--clang/lib/Frontend/PCHWriter.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp
index 3c42d474dc0..efed0f0a6c4 100644
--- a/clang/lib/Frontend/PCHWriter.cpp
+++ b/clang/lib/Frontend/PCHWriter.cpp
@@ -833,11 +833,8 @@ void PCHWriter::WriteLanguageOptions(const LangOptions &LangOpts) {
Record.push_back(LangOpts.MathErrno); // Math functions must respect errno
// (modulo the platform support).
- Record.push_back(LangOpts.OverflowChecking); // Extension to call a handler function when
- // signed integer arithmetic overflows.
-
- Record.push_back(LangOpts.HeinousExtensions); // Extensions that we really don't like and
- // may be ripped out at any time.
+ Record.push_back(LangOpts.getSignedOverflowBehavior());
+ Record.push_back(LangOpts.HeinousExtensions);
Record.push_back(LangOpts.Optimize); // Whether __OPTIMIZE__ should be defined.
Record.push_back(LangOpts.OptimizeSize); // Whether __OPTIMIZE_SIZE__ should be
OpenPOWER on IntegriCloud