[LLVMdev] [RFC] Moving OnDiskHashTable from clang to LLVM

Justin Bogner mail at justinbogner.com
Sun Mar 23 14:58:46 PDT 2014


Michael Spencer <bigcheesegs at gmail.com> writes:
> packed_endian_specific_integral supports writing.

This is true, but as far as I can tell it's pretty awkward to use it
with a raw_ostream:

  raw_ostream OS = ...;
  uint32_t Val = ...;
  ...
  ulittle32_t x = *reinterpret_cast<ulittle32_t *>&Val;
  OS.write((char *)&x, sizeof(x));

Maybe I'm missing something?



More information about the llvm-dev mailing list