diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-29 04:37:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-29 04:37:03 +0000 |
commit | 01d9dbf4ae627e2ba42fc23485789a33fa296516 (patch) | |
tree | 12276e949a344ec33f1a1712bf5a497ba0496eaa /lib/Basic/LangOptions.cpp | |
parent | 274f4334f6dd35239e5c3d4b86198f7f5804b059 (diff) |
Add -fobjc-gc and -fobjc-gc-only options to the driver.
Add corresponding enum in LangOptions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/LangOptions.cpp')
-rw-r--r-- | lib/Basic/LangOptions.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Basic/LangOptions.cpp b/lib/Basic/LangOptions.cpp index f7fd91fbda..6119afc790 100644 --- a/lib/Basic/LangOptions.cpp +++ b/lib/Basic/LangOptions.cpp @@ -30,7 +30,8 @@ void LangOptions::Emit(llvm::Serializer& S) const { S.EmitBool((bool) NoExtensions); S.EmitBool((bool) CXXOperatorNames); S.EmitBool((bool) ObjC1); - S.EmitBool((bool) ObjC2); + S.EmitBool((bool) ObjC2); + S.EmitBool((unsigned) GC); S.EmitBool((bool) PascalStrings); S.EmitBool((bool) Boolean); S.EmitBool((bool) WritableStrings); @@ -51,6 +52,7 @@ void LangOptions::Read(llvm::Deserializer& D) { CXXOperatorNames = D.ReadBool() ? 1 : 0; ObjC1 = D.ReadBool() ? 1 : 0; ObjC2 = D.ReadBool() ? 1 : 0; + GC = D.ReadInt(); PascalStrings = D.ReadBool() ? 1 : 0; Boolean = D.ReadBool() ? 1 : 0; WritableStrings = D.ReadBool() ? 1 : 0; |