diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-20 17:22:50 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-10-20 17:22:50 +0000 |
commit | 7ee68bd706c0ade45d3d1e85c77e25678f5ab1e8 (patch) | |
tree | d6819aaddf8cdb27512e4c6c56a52988796613df /lib/CodeGen/TargetABIInfo.cpp | |
parent | 209a8c2fa23636f6d065d618e7078e164903f5cd (diff) |
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
Diffstat (limited to 'lib/CodeGen/TargetABIInfo.cpp')
-rw-r--r-- | lib/CodeGen/TargetABIInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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: |