[clang] 376c2df - [Driver] Sort Generic_GCC::IsIntegratedAssemblerDefault, NFC
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 13 23:42:19 PDT 2022
Author: Brad Smith
Date: 2022-04-14T02:41:30-04:00
New Revision: 376c2df0baeb6c7bf1b37d4ef25844d77d298cb3
URL: https://github.com/llvm/llvm-project/commit/376c2df0baeb6c7bf1b37d4ef25844d77d298cb3
DIFF: https://github.com/llvm/llvm-project/commit/376c2df0baeb6c7bf1b37d4ef25844d77d298cb3.diff
LOG: [Driver] Sort Generic_GCC::IsIntegratedAssemblerDefault, NFC
Added:
Modified:
clang/lib/Driver/ToolChains/Gnu.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp
index 4f1f2a69a149a..bc681e4d180ef 100644
--- a/clang/lib/Driver/ToolChains/Gnu.cpp
+++ b/clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2804,8 +2804,6 @@ bool Generic_GCC::isPICDefaultForced() const {
bool Generic_GCC::IsIntegratedAssemblerDefault() const {
switch (getTriple().getArch()) {
- case llvm::Triple::x86:
- case llvm::Triple::x86_64:
case llvm::Triple::aarch64:
case llvm::Triple::aarch64_be:
case llvm::Triple::arm:
@@ -2815,8 +2813,12 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::bpfeb:
case llvm::Triple::csky:
case llvm::Triple::hexagon:
- case llvm::Triple::thumb:
- case llvm::Triple::thumbeb:
+ case llvm::Triple::m68k:
+ case llvm::Triple::mips:
+ case llvm::Triple::mipsel:
+ case llvm::Triple::mips64:
+ case llvm::Triple::mips64el:
+ case llvm::Triple::msp430:
case llvm::Triple::ppc:
case llvm::Triple::ppcle:
case llvm::Triple::ppc64:
@@ -2827,13 +2829,11 @@ bool Generic_GCC::IsIntegratedAssemblerDefault() const {
case llvm::Triple::sparcel:
case llvm::Triple::sparcv9:
case llvm::Triple::systemz:
- case llvm::Triple::mips:
- case llvm::Triple::mipsel:
- case llvm::Triple::mips64:
- case llvm::Triple::mips64el:
- case llvm::Triple::msp430:
- case llvm::Triple::m68k:
+ case llvm::Triple::thumb:
+ case llvm::Triple::thumbeb:
case llvm::Triple::ve:
+ case llvm::Triple::x86:
+ case llvm::Triple::x86_64:
return true;
default:
return false;
More information about the cfe-commits
mailing list