Looks like these accessor functions are a bit overly defensive, and
due to the amount of code, that part isn't easy to read. We have
code to log translation results in writeTo and writeRelocations, so
I don't think we need to log it again in these functions.
I think the new function is much easier to understand.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 15393 Build 15393: arc lint + arc unit
Event Timeline
Comment Actions
Agreed. This is mostly a historical legacy since these used to be public method used elsewhere. I've been meaning to do something like this myself.
| lld/wasm/InputFiles.cpp | ||
|---|---|---|
| 68 | I think this assert is useful. It ensures the type is valid and part of the output. | |
| lld/wasm/InputFiles.cpp | ||
|---|---|---|
| 68 | Done. | |
I think this assert is useful. It ensures the type is valid and part of the output.