================ @@ -34,6 +34,19 @@ bool LoongArch::isValidArchName(StringRef Arch) { return false; } +bool LoongArch::isValidFeatureName(StringRef Feature) { + if (Feature.starts_with("+") || Feature.starts_with("-")) { + return false; + } ---------------- wangleiat wrote:
The braces can be omitted. https://github.com/llvm/llvm-project/pull/140700 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits