Provide some free functions to reduce verbosity of endian-writing
a single value, and replace the endianness template parameter with
a field.
Part of PR37466.
Differential D47032
Support: Simplify endian stream interface. NFCI. pcc on May 17 2018, 2:44 PM. Authored by
Details Provide some free functions to reduce verbosity of endian-writing Part of PR37466.
Diff Detail
Event TimelineComment Actions LGTM If I were to design this from scratch, I'd perhaps define two classes, LEWriter and BEWriter, instead of giving the endianness as an argument. But that's an off-topic. Comment Actions Maybe, but it will need to be an argument in a few other places, such as ELFObjectWriter (see D47040). Though maybe we could somehow template it on ELFT as we do in lld... but that's another separate discussion. Comment Actions Note that the endianness values can be passed in to the llvm functions at It’s a shame this object hierarchy was developed separately from the |