[PATCH] D71124: [RISCV] support clang driver to select cpu
Jim Lin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 00:50:35 PST 2019
Jim added inline comments.
================
Comment at: clang/lib/Basic/Targets/RISCV.h:46
+ bool setCPU(const std::string &Name) override {
+ CPU = Name;
----------------
I think this should test cpu name is valid first. And assign Name to CPU, if it is valid.
Repository:
rC Clang
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71124/new/
https://reviews.llvm.org/D71124
More information about the cfe-commits
mailing list