craig.topper added inline comments.

================
Comment at: clang/lib/Driver/ToolChains/Arch/RISCV.cpp:324
 
-  return Triple.isRISCV64() ? "generic-rv64" : "generic-rv32";
+  std::string DefaultCPU = Triple.isRISCV64() ? CLANG_RISCV64_DEFAULT_CPU
+                                              : CLANG_RISCV32_DEFAULT_CPU;
----------------
Can we initialize `CPU` to the default CPU at the top? Remove the `CPU.empty()` 
check. Then we don't need a second `"native"` check.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144853/new/

https://reviews.llvm.org/D144853

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to