aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/LangOptions.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-11 17:36:14 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-11 17:36:14 +0000
commit6379a7a15335e0af543a942efe9cfd514a83dab8 (patch)
treea8636980d6c00dd64e11ac146bbdf6f35d1889fb /include/clang/Basic/LangOptions.h
parent58bf6101062867ca4b3028f9e77e4ae642f09b44 (diff)
Add -fexceptions to Driver
- Maps to LangOptions.Exceptions - Currently always off, should autoselect based on language. Update CodeGen to set unwind attribute on functions definitions based on LangOptions.Exceptions. - Still need to set attributes appropriately on calls. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r--include/clang/Basic/LangOptions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index 589153f47e..7756a2ab5b 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -42,6 +42,7 @@ struct LangOptions {
unsigned Boolean : 1; // Allow bool/true/false
unsigned WritableStrings : 1; // Allow writable strings
unsigned LaxVectorConversions : 1;
+ unsigned Exceptions : 1; // Support exception handling.
private:
unsigned GC : 2; // Objective-C Garbage Collection modes. We declare
@@ -57,7 +58,7 @@ public:
GC = ObjC1 = ObjC2 = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0;
CXXOperatorNames = PascalStrings = Boolean = WritableStrings = 0;
- LaxVectorConversions = 0;
+ LaxVectorConversions = Exceptions = 0;
}
GCMode getGCMode() const { return (GCMode) GC; }