Knowing about how types are declared for 32/64 bit platforms:
https://github.com/llvm-mirror/llvm/blob/master/include/llvm/BinaryFormat/ELF.h#L28
it is possible to simplify code that writes a binary a bit.
The patch does that.
Differential D58441
[yaml2obj] - Simplify implementation. NFCI. ClosedPublic Authored by grimar on Feb 20 2019, 5:10 AM.
Details Summary Knowing about how types are declared for 32/64 bit platforms: it is possible to simplify code that writes a binary a bit.
Diff Detail Event TimelineComment Actions LGTM.
This revision is now accepted and ready to land.Feb 20 2019, 5:45 AM Closed by commit rL354462: [yaml2obj] - Simplify implementation. NFCI. (authored by grimar). · Explain WhyFeb 20 2019, 5:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 187550 tools/yaml2obj/yaml2elf.cpp
|
I'd rename this from V to Version, so that it's a little easier to understand.