Thanks Lang! This is a really clean solution. I think as part of this i’d need to sed raw_ostream -> TextPrinter in AsmWriter.cpp, but assuming people are ok with that, it would make the rest of the patch much cleaner. Thanks, Pete > On Jan 21, 2015, at 3:22 PM, Lang Hames <lhames at gmail.com> wrote: > > <StructuredStreamWriter.cpp>