search for: asmoutstream

Displaying 1 result from an estimated 1 matches for "asmoutstream".

2008 Jun 04
1
[LLVMdev] Standard output binary mode on windows
...tTargetData())); + // If writing to stdout, set binary mode. + if (asm_out_file == stdout) + sys::Program::ChangeStdoutToBinary(); + // Emit an LLVM .bc file to the output. This is used when passed // -emit-llvm -c to the GCC driver. PerModulePasses->add(CreateBitcodeWriterPass(*AsmOutStream)); @@ -473,6 +478,10 @@ // wrong for llvm/.bc emission cases. flag_no_ident = 1; + // If writing to stdout, set binary mode. + if (asm_out_file == stdout) + sys::Program::ChangeStdoutToBinary(); + AttributeUsedGlobals.clear(); timevar_pop(TV_LLVM_INIT); }