[cfe-commits] r84646 - /cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
Edward O'Callaghan
eocallaghan at auroraux.org
Tue Oct 20 10:22:50 PDT 2009
Author: evocallaghan
Date: Tue Oct 20 12:22:50 2009
New Revision: 84646
URL: http://llvm.org/viewvc/llvm-project?rev=84646&view=rev
Log:
Bring Darwin into the switch-case statement instead of its own if for readability.
Modified:
cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetABIInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetABIInfo.cpp?rev=84646&r1=84645&r2=84646&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetABIInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetABIInfo.cpp Tue Oct 20 12:22:50 2009
@@ -1744,10 +1744,9 @@
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:
More information about the cfe-commits
mailing list