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 | 462e4ab4ac01e1e02b891c12854cdd1db49b679b (patch) | |
tree | 09a0750df3b886dc2608e2124ae3473e1fec82a3 /clang/lib | |
parent | 040d75d9b60dddb1fd7b4fbd6cf1eafe6583e068 (diff) | |
download | bcm5719-llvm-462e4ab4ac01e1e02b891c12854cdd1db49b679b.tar.gz bcm5719-llvm-462e4ab4ac01e1e02b891c12854cdd1db49b679b.zip |
Bring Darwin into the switch-case statement instead of its own if for readability.
llvm-svn: 84646
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/TargetABIInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/TargetABIInfo.cpp b/clang/lib/CodeGen/TargetABIInfo.cpp index 59f579f7b17..48eea8af56e 100644 --- a/clang/lib/CodeGen/TargetABIInfo.cpp +++ b/clang/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: |