================
@@ -1622,6 +1732,17 @@ size_t 
ObjectFileELF::GetSectionHeaderInfo(SectionHeaderColl &section_headers,
             ParseARMAttributes(data, section_size, arch_spec);
         }
 
+        if (arch_spec.GetMachine() == llvm::Triple::riscv32 ||
+            arch_spec.GetMachine() == llvm::Triple::riscv64) {
----------------
bulbazord wrote:

Suggestion: Replace these checks with `arch_spec.GetTriple().isRISCV()`.  Any 
further RISCV machine types added in the future will automatically be captured 
here and it will just work.

https://github.com/llvm/llvm-project/pull/173046
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to