[llvm] [clang] Enable descriptions for --print-supported-extensions (PR #66715)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 02:32:53 PDT 2023
================
@@ -600,11 +601,17 @@ StringRef ARM::getARMCPUForArch(const llvm::Triple &Triple, StringRef MArch) {
llvm_unreachable("invalid arch name");
}
-void ARM::PrintSupportedExtensions() {
+void ARM::PrintSupportedExtensions(std::map<StringRef, StringRef> llvmDescMap) {
outs() << "All available -march extensions for ARM\n\n";
for (const auto &Ext : ARCHExtNames) {
// Extensions without a feature cannot be used with -march.
- if (!Ext.Feature.empty())
- outs() << '\t' << Ext.Name << "\n";
+ if (!Ext.Feature.empty()) {
----------------
DavidSpickett wrote:
Remove a level of indentation by making this:
```
if (Ext.Feature.empty())
continue;
outs() << '\t' << Ext.Name << "\n";
<...>
```
https://github.com/llvm/llvm-project/pull/66715
More information about the llvm-commits
mailing list