diff options
author | John McCall <rjmccall@apple.com> | 2012-07-12 02:07:58 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2012-07-12 02:07:58 +0000 |
commit | f7226fbe677a9c7578fa0613491ed15c6dc6a5e1 (patch) | |
tree | 341afe4f4a4d8d3068a7e0164dc9f2e825d21e8e /lib/Basic/ObjCRuntime.cpp | |
parent | dc5796cb3e77feb58928f84632d3f0088351d847 (diff) |
Add the ObjFW runtime. Patch by Jonathan Schleifer!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/ObjCRuntime.cpp')
-rw-r--r-- | lib/Basic/ObjCRuntime.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Basic/ObjCRuntime.cpp b/lib/Basic/ObjCRuntime.cpp index f52677b512..9bd433a064 100644 --- a/lib/Basic/ObjCRuntime.cpp +++ b/lib/Basic/ObjCRuntime.cpp @@ -32,6 +32,7 @@ raw_ostream &clang::operator<<(raw_ostream &out, const ObjCRuntime &value) { case ObjCRuntime::iOS: out << "ios"; break; case ObjCRuntime::GNUstep: out << "gnustep"; break; case ObjCRuntime::GCC: out << "gcc"; break; + case ObjCRuntime::ObjFW: out << "objfw"; break; } if (value.getVersion() > VersionTuple(0)) { out << '-' << value.getVersion(); @@ -68,6 +69,8 @@ bool ObjCRuntime::tryParse(StringRef input) { kind = ObjCRuntime::GNUstep; } else if (runtimeName == "gcc") { kind = ObjCRuntime::GCC; + } else if (runtimeName == "objfw") { + kind = ObjCRuntime::ObjFW; } else { return true; } |