search for: mmiwp

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

2020 Apr 15
3
Backend emitting to string instead of file
...via buffer_ostream) the resulting string has always zero length. Here the code changes I do: Original llc:       if (Target->addPassesToEmitFile(PM, *OS,                                       DwoOut ? &DwoOut->os() : nullptr,                                       FileType, NoVerify, MMIWP)) Now, with this tiny change I was hoping to write to a string instead of the output stream defined by the command line parameters: std::string outStr; raw_string_ostream stream(outStr); buffer_ostream pstream(stream); if (Target->addPassesToEmitFile(PM, pstream,                            ...