]> granicus.if.org Git - clang/commitdiff
Bring Darwin into the switch-case statement instead of its own if for readability.
authorEdward O'Callaghan <eocallaghan@auroraux.org>
Tue, 20 Oct 2009 17:22:50 +0000 (17:22 +0000)
committerEdward O'Callaghan <eocallaghan@auroraux.org>
Tue, 20 Oct 2009 17:22:50 +0000 (17:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84646 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/TargetABIInfo.cpp

index 59f579f7b17e111cca068f59b932a857bccc4619..48eea8af56e1d466ee489f8ce16a8a00f192edc0 100644 (file)
@@ -1744,10 +1744,9 @@ const ABIInfo &CodeGenTypes::getABIInfo() const {
     return *(TheABIInfo = new SystemZABIInfo());
 
   case llvm::Triple::x86:
-    if (Triple.getOS() == llvm::Triple::Darwin)
-      return *(TheABIInfo = new X86_32ABIInfo(Context, true, true));
-
     switch (Triple.getOS()) {
+    case llvm::Triple::Darwin:
+      return *(TheABIInfo = new X86_32ABIInfo(Context, true, true))
     case llvm::Triple::Cygwin:
     case llvm::Triple::DragonFly:
     case llvm::Triple::MinGW32: