From: Edward O'Callaghan Date: Tue, 20 Oct 2009 17:22:50 +0000 (+0000) Subject: Bring Darwin into the switch-case statement instead of its own if for readability. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ee68bd706c0ade45d3d1e85c77e25678f5ab1e8;p=clang Bring Darwin into the switch-case statement instead of its own if for readability. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84646 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TargetABIInfo.cpp b/lib/CodeGen/TargetABIInfo.cpp index 59f579f7b1..48eea8af56 100644 --- a/lib/CodeGen/TargetABIInfo.cpp +++ b/lib/CodeGen/TargetABIInfo.cpp @@ -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: