[clang] [llvm] [RISCV] Deduplicate RISCVISAInfo::toFeatures/toFeatureVector. NFC (PR #76942)
    Craig Topper via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jan  4 15:55:05 PST 2024
    
    
  
================
@@ -42,9 +42,9 @@ static bool getArchFeatures(const Driver &D, StringRef Arch,
     return false;
   }
 
-  (*ISAInfo)->toFeatures(
-      Features, [&Args](const Twine &Str) { return Args.MakeArgString(Str); },
-      /*AddAllExtensions=*/true);
+  for (std::string &Str : (*ISAInfo)->toFeatures(/*AddAllExtension=*/true,
----------------
topperc wrote:
const reference?
https://github.com/llvm/llvm-project/pull/76942
    
    
More information about the llvm-commits
mailing list