Currently there are 2 duplicate implementation, and I want to add
a use in a 3rd place. Combine them in lib/BinaryFormat so they can
be shared.
Also update the return values of the reloc and symbol type toString functions to use StringRef.
Paths
| Differential D126553
[WebAssembly] Consolidate sectionTypeToString in BinaryFormat [NFC] ClosedPublic Authored by dschuff on May 27 2022, 8:31 AM.
Details Summary Currently there are 2 duplicate implementation, and I want to add Also update the return values of the reloc and symbol type toString functions to use StringRef.
Diff Detail
Event Timeline
dschuff mentioned this in D126509: [Objcopy][Wasm] Allow selecting known sections by name.May 27 2022, 8:36 AM dschuff added inline comments.
Comment Actions include all the diffs
This revision is now accepted and ready to land.May 27 2022, 9:17 AM This revision was landed with ongoing or failed builds.May 27 2022, 9:28 AM Closed by commit rGa205f2904d0a: [WebAssembly] Consolidate sectionTypeToString in BinaryFormat [NFC] (authored by dschuff). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 432570 lld/wasm/OutputSections.cpp
llvm/include/llvm/BinaryFormat/Wasm.h
llvm/lib/BinaryFormat/Wasm.cpp
llvm/lib/Object/WasmObjectFile.cpp
|
Use std::string for consistency with the two above? Or convert them all the StringRef?