diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2012-07-03 20:49:52 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2012-07-03 20:49:52 +0000 |
commit | 11d3f4cc27e6b923fc32481dc1bb5ec46c7d1f4b (patch) | |
tree | 555a41fbf7a33a4b636adedd17cfbacf1b3bfdc8 /lib/CodeGen/CodeGenModule.cpp | |
parent | 1fc6e4fa79444b2a7be8a1150f646ffbde68b744 (diff) |
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
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index ef20cf4556..bba3e7c5f7 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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; |