[Lldb-commits] [lldb] [LLDB] RISCV feature attribute support and allows overriding additional(default) feature (PR #147990)
Santhosh Kumar Ellendula via lldb-commits
lldb-commits at lists.llvm.org
Mon Apr 20 05:36:59 PDT 2026
================
@@ -1453,6 +1454,86 @@ bool DisassemblerLLVMC::MCDisasmInstance::IsAuthenticated(
return InstrDesc.isAuthenticated() || IsBrkC47x;
}
+void DisassemblerLLVMC::UpdateSubtargetFeatures(
+ const llvm::StringRef &subtarget_features,
+ std::string &user_feature_overrides) {
+
+ std::string warning_reason;
+ llvm::raw_string_ostream ostream(warning_reason);
+ std::vector<std::string> valid_user_flags;
----------------
santhoshe447 wrote:
The flag count is only known at runtime, so std::vector is the appropriate and safe choice. Using SmallVector would require guessing a size.
https://github.com/llvm/llvm-project/pull/147990
More information about the lldb-commits
mailing list