This patch changes the code to use a modern unwrapOrError(StringRef Input, Expected<T> EO)
version that contains the input source name and removes the depricated version.
Details
Diff Detail
Event Timeline
test/Object/invalid.test | ||
---|---|---|
429 | Why can't this check use [[FILE]]? |
- Addressed review comments.
test/Object/invalid.test | ||
---|---|---|
229 | Initially this file was introduced to report "e_shnum should be zero if a file has no section header table" (D25090) This is a result of error catching code change multiplied by effect from having a black box precompiled binary committed. | |
247 | Yes, done. | |
429 | It can. I did not like how -DFILE=%p/Inputs/corrupt-invalid-phentsize.elf.x86-64 looks like (too long), |
Aside: it's rather weird that invalid-e_shnum is being used to test an invalid e_phentsize...!