[LLVMdev] Question on llc output stream

David Greene dag at cray.com
Wed Jul 29 08:09:04 PDT 2009


In llc's GetOutputStream we have this:

    raw_fd_ostream *FDOut = new raw_fd_ostream(OutputFilename.c_str(),
                                               /*Binary=*/true, Force, error);

Why is Binary set true here?  We don't know yet whether this is going to be an
AsmFile or a MachOFile.

Setting Binary=true causes the stream to be unbuffered.  Is this what we want?

                               -Dave



More information about the llvm-dev mailing list