> Create a raw_string_ostream object and use << to print to it. The > underlying string will contain the textual representation. This is cumbersome. There is not a way to directly get the std::string or char * representation of IR text? -- Regards, Peng