aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/LangOptions.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-08-11 21:35:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-08-11 21:35:06 +0000
commitf77ac86f4eca528a04b817d7ad7f045a47d52712 (patch)
treec029884b8ff18e6436d9e322d5062a4a619e5bec /include/clang/Basic/LangOptions.h
parent709c00cf6e88a1acfe2b27e61c9dc5f7a71e49b9 (diff)
Add LangOptions::NeXTRuntime.
- Wired to -fnext-runtime and -fgnu-runtime options. - Defaults to GNU, no autoselection for NeXT. Emit NeXT OBJC_IMAGE_INFO marker. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54651 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/LangOptions.h')
-rw-r--r--include/clang/Basic/LangOptions.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/clang/Basic/LangOptions.h b/include/clang/Basic/LangOptions.h
index 7756a2ab5b..c07fdfe47c 100644
--- a/include/clang/Basic/LangOptions.h
+++ b/include/clang/Basic/LangOptions.h
@@ -43,7 +43,9 @@ struct LangOptions {
unsigned WritableStrings : 1; // Allow writable strings
unsigned LaxVectorConversions : 1;
unsigned Exceptions : 1; // Support exception handling.
-
+
+ unsigned NeXTRuntime : 1; // Use NeXT runtime.
+
private:
unsigned GC : 2; // Objective-C Garbage Collection modes. We declare
// this enum as unsigned because MSVC insists on making enums
@@ -58,7 +60,7 @@ public:
GC = ObjC1 = ObjC2 = 0;
C99 = Microsoft = CPlusPlus = CPlusPlus0x = NoExtensions = 0;
CXXOperatorNames = PascalStrings = Boolean = WritableStrings = 0;
- LaxVectorConversions = Exceptions = 0;
+ LaxVectorConversions = Exceptions = NeXTRuntime = 0;
}
GCMode getGCMode() const { return (GCMode) GC; }