Index: include/llvm/Support/EndianStream.h =================================================================== --- include/llvm/Support/EndianStream.h +++ include/llvm/Support/EndianStream.h @@ -31,6 +31,31 @@ OS.write((const char *)&Val, sizeof(value_type)); } }; + +template <> +template <> +inline void Writer::write(float Val) { + write(FloatToBits(Val)); +} + +template <> +template <> +inline void Writer::write(double Val) { + write(DoubleToBits(Val)); +} + +template <> +template <> +inline void Writer::write(float Val) { + write(FloatToBits(Val)); +} + +template <> +template <> +inline void Writer::write(double Val) { + write(DoubleToBits(Val)); +} + } // end namespace endian } // end namespace support