From b601c96892254f06c64e2376cfd124e461586975 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 3 Jul 2012 20:49:52 +0000 Subject: 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. llvm-svn: 159684 --- clang/lib/CodeGen/CodeGenModule.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index ef20cf4..bba3e7c 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -138,8 +138,8 @@ void CodeGenModule::createObjCRuntime() { // This is just isGNUFamily(), but we want to force implementors of // new ABIs to decide how best to do this. switch (LangOpts.ObjCRuntime.getKind()) { - case ObjCRuntime::GNU: - case ObjCRuntime::FragileGNU: + case ObjCRuntime::GNUstep: + case ObjCRuntime::GCC: ObjCRuntime = CreateGNUObjCRuntime(*this); return; @@ -546,7 +546,7 @@ static bool hasUnwindExceptions(const LangOptions &LangOpts) { // If ObjC exceptions are enabled, this depends on the ABI. if (LangOpts.ObjCExceptions) { - if (LangOpts.ObjCRuntime.isFragile()) return false; + return LangOpts.ObjCRuntime.hasUnwindExceptions(); } return true; -- cgit v1.1