This is an archive of the discontinued LLVM Phabricator instance.

[MC][WebAssembly] Error on data symbols in the text section.
ClosedPublic

Authored by sbc100 on Sep 24 2019, 4:15 PM.

Details

Summary

Previously we had an assert but this can actually occur in valid user
code so we need to handle this in release builds too.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Sep 24 2019, 4:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 24 2019, 4:15 PM

Is there any easy way to print the name of the symbol? One thing I discovered when working with a user with a big codebase is that these backend error messages we have aren't very useful, even for us who know exactly what they mean.

This does include the name of symbol in the error. I admit there are other place in the binary reader where we don't do that.

dschuff accepted this revision.Sep 25 2019, 3:33 PM

Oh, right. Guess I should actually look at the code first...

This revision is now accepted and ready to land.Sep 25 2019, 3:33 PM
This revision was automatically updated to reflect the committed changes.