search for: compiletwice

Displaying 2 results from an estimated 2 matches for "compiletwice".

Did you mean: compiletime
2016 Feb 19
3
raw_pwrite_stream to string or stdout?
TargetMachine::addPassesToEmitFile(..) requires as its 2nd argument an raw_pwrite_stream. Is it possible to create such a thing which either writes into a standard string or streams to outs() ? Thanks,
2016 Feb 22
2
raw_pwrite_stream to string or stdout?
...t possible to create such a thing which either writes into a standard >> string or streams to outs() ? > > > I would suggest doing what llc does: > > if ((FileType != TargetMachine::CGFT_AssemblyFile && > !Out->os().supportsSeeking()) || > CompileTwice) { > BOS = make_unique<raw_svector_ostream>(Buffer); > OS = BOS.get(); > } > > That will work even with redirects. > > Cheers, > Rafael >