[llvm] [llvm-readobj][COFF] Dump .modmeta section (PR #201695)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 11 02:33:15 PDT 2026
================
@@ -2564,71 +2564,97 @@ void COFFDumper::printCOFFTLSDirectory(
void COFFDumper::printCOFFCxxModuleMetadata() {
SectionRef Sect;
- for (const SectionRef &S : Obj->sections()) {
- StringRef SectionName = unwrapOrError(Obj->getFileName(), S.getName());
- if (SectionName == ".modmeta") {
+ for (SectionRef S : Obj->sections()) {
+ Expected<StringRef> SectionName = S.getName();
----------------
jh7370 wrote:
If this fails, it needs reporting using `reportWarning` still.
https://github.com/llvm/llvm-project/pull/201695
More information about the llvm-commits
mailing list