Rename the GCC Objective-C runtime to gcc from gnu-fragile and the GNUstep
runtime to gnustep from gnu. Fix EH for the GCC runtime.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159684 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Basic/ObjCRuntime.cpp b/lib/Basic/ObjCRuntime.cpp
index d66da07..0f30bfa 100644
--- a/lib/Basic/ObjCRuntime.cpp
+++ b/lib/Basic/ObjCRuntime.cpp
@@ -30,8 +30,8 @@
case ObjCRuntime::MacOSX: out << "macosx"; break;
case ObjCRuntime::FragileMacOSX: out << "macosx-fragile"; break;
case ObjCRuntime::iOS: out << "ios"; break;
- case ObjCRuntime::GNU: out << "gnu"; break;
- case ObjCRuntime::FragileGNU: out << "gnu-fragile"; break;
+ case ObjCRuntime::GNUstep: out << "gnustep"; break;
+ case ObjCRuntime::GCC: out << "gcc"; break;
}
if (value.getVersion() > VersionTuple(0)) {
out << '-' << value.getVersion();
@@ -60,10 +60,10 @@
kind = ObjCRuntime::FragileMacOSX;
} else if (runtimeName == "ios") {
kind = ObjCRuntime::iOS;
- } else if (runtimeName == "gnu") {
- kind = ObjCRuntime::GNU;
- } else if (runtimeName == "gnu-fragile") {
- kind = ObjCRuntime::FragileGNU;
+ } else if (runtimeName == "gnustep") {
+ kind = ObjCRuntime::GNUstep;
+ } else if (runtimeName == "gcc") {
+ kind = ObjCRuntime::GCC;
} else {
return true;
}