[PATCH] D146054: [RISCV] Add -print-supported-marchs and -march=help support
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 26 20:23:28 PDT 2023
craig.topper added inline comments.
================
Comment at: clang/tools/driver/cc1_main.cpp:189
+ std::string Error;
+ const llvm::Target *TheTarget =
+ llvm::TargetRegistry::lookupTarget(TargetStr, Error);
----------------
Why do we need to lookup the TargetRegistry?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146054/new/
https://reviews.llvm.org/D146054
More information about the llvm-commits
mailing list