[patch] Always open files in binary mode

Rafael EspĂ­ndola rafael.espindola at gmail.com
Mon Feb 24 04:52:56 PST 2014


> Yes. Clang and llc had explicit logic for setting F_Binary only when
> not printing assembly. Things that knew they were always printing text
> (like a graphviz file), would also print in text mode. This is
> probably an historical thing. We  had text output only first and then
> added binary.

In fact, clang actually detected the input file format (CRLF or LF).
CCing Aaron who implemented it.

Cheers,
Rafael



More information about the llvm-commits mailing list