[PATCH] D129824: [RISCV] Set triple based on -march flag which can be deduced in more generic way

Yueh-Ting (eop) Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 15 02:15:27 PDT 2022


eopXD added inline comments.


================
Comment at: clang/lib/Driver/Driver.cpp:660
+
+    if (RVArch == llvm::Triple::riscv64 &&
+        ArchName.startswith_insensitive("rv32"))
----------------
Do we need to throw error (or warning) when these two (`RVArch` and `ArchName`) don't match?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129824



More information about the cfe-commits mailing list