summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGException.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-07-03 20:49:52 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-07-03 20:49:52 +0000
commitb601c96892254f06c64e2376cfd124e461586975 (patch)
tree2aedcecc8cb9d63dc2d34f8a894fc710de64c02b /clang/lib/CodeGen/CGException.cpp
parent1e148fe064bbb65ae1fcdc893db0e7af781ad20b (diff)
downloadbcm5719-llvm-b601c96892254f06c64e2376cfd124e461586975.tar.gz
bcm5719-llvm-b601c96892254f06c64e2376cfd124e461586975.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CGException.cpp')
-rw-r--r--clang/lib/CodeGen/CGException.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp
index fb36715364b..2fdc74ce6d0 100644
--- a/clang/lib/CodeGen/CGException.cpp
+++ b/clang/lib/CodeGen/CGException.cpp
@@ -186,8 +186,8 @@ static const EHPersonality &getObjCPersonality(const LangOptions &L) {
case ObjCRuntime::MacOSX:
case ObjCRuntime::iOS:
return EHPersonality::NeXT_ObjC;
- case ObjCRuntime::GNU:
- case ObjCRuntime::FragileGNU:
+ case ObjCRuntime::GNUstep:
+ case ObjCRuntime::GCC:
return EHPersonality::GNU_ObjC;
}
llvm_unreachable("bad runtime kind");
@@ -216,10 +216,11 @@ static const EHPersonality &getObjCXXPersonality(const LangOptions &L) {
case ObjCRuntime::FragileMacOSX:
return getCXXPersonality(L);
- // The GNU runtime's personality function inherently doesn't support
+ // The GCC runtime's personality function inherently doesn't support
// mixed EH. Use the C++ personality just to avoid returning null.
- case ObjCRuntime::GNU:
- case ObjCRuntime::FragileGNU:
+ case ObjCRuntime::GCC:
+ return EHPersonality::GNU_ObjC;
+ case ObjCRuntime::GNUstep:
return EHPersonality::GNU_ObjCXX;
}
llvm_unreachable("bad runtime kind");
OpenPOWER on IntegriCloud