aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetABIInfo.cpp
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-20 17:22:50 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-10-20 17:22:50 +0000
commit7ee68bd706c0ade45d3d1e85c77e25678f5ab1e8 (patch)
treed6819aaddf8cdb27512e4c6c56a52988796613df /lib/CodeGen/TargetABIInfo.cpp
parent209a8c2fa23636f6d065d618e7078e164903f5cd (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.cpp5
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: