I need this to remove a binary from LLD test suite.
The patch also simplifies the code a bit.
Details
Diff Detail
Event Timeline
This is fine as is. Just LLD side requires a slightly more complex test than I expected initially.
It is: https://reviews.llvm.org/D59085
What about support for other invalid data encodings e.g. 3, 4 etc?
| lib/ObjectYAML/ELFYAML.cpp | ||
|---|---|---|
| 235–236 | I'd completely rewrite the first part of the sentence, up to the comma as "ELFDATANONE is an invalid data encoding, ..." | |
| test/tools/yaml2obj/elf-header-data.yaml | ||
| 1 | Please name this test after ELFDATANONE, e.g. elfdatanone.yaml or elf-header-elfdatanone.aml etc? | |
| 6 | What about llvm-objdump? I'm guessing they all rely on the same Object library, so all get the error from the same place? Perhaps a better test is to show using something like od that the byte at EI_DATA is 0? | |
I do not have a use case for that, so I am not sure it is worth to think about that atm.
- Addressed review comments.
| test/tools/yaml2obj/elf-header-data.yaml | ||
|---|---|---|
| 6 |
Yes.
Done, thanks for the hint about od! | |
| test/tools/yaml2obj/elf-header-elfdatanone.yaml | ||
|---|---|---|
| 1 ↗ | (On Diff #189687) | YAML -> "YAML file" or "YAML input" |
I'd completely rewrite the first part of the sentence, up to the comma as "ELFDATANONE is an invalid data encoding, ..."
"because want" -> "because we want"
Remove the quotes around "invalid"