[llvm] [Object] Beginnings of SFrame parser and dumper (PR #147294)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 16 03:03:46 PDT 2025
================
@@ -6438,11 +6438,8 @@ void ELFDumper<ELFT>::printSectionsAsSFrame(ArrayRef<std::string> Sections) {
constexpr endianness E = ELFT::Endianness;
for (object::SectionRef Section :
getSectionRefsByNameOrIndex(ObjF, Sections)) {
- StringRef SectionName;
- if (Error Err = Section.getName().moveInto(SectionName)) {
- SectionName = "<error>";
- reportWarning(std::move(Err), FileName);
- }
+ // Validity of sections names checked in getSectionRefsByNameOrIndex
----------------
jh7370 wrote:
```suggestion
// Validity of sections names checked in getSectionRefsByNameOrIndex.
```
Nit.
https://github.com/llvm/llvm-project/pull/147294
More information about the llvm-commits
mailing list