On Nov 29, 2011, at 11:01 PM, Benjamin Kramer wrote:
> On 30.11.2011, at 02:00, Douglas Gregor <[email protected]> wrote:
>
>>
>>
>> Sent from my iPhone
>>
>> On Nov 29, 2011, at 2:57 PM, Chris Lattner <[email protected]> wrote:
>>
>>> On Nov 29, 2011, at 2:27 PM, Douglas Gregor wrote:
>>>> URL: http://llvm.org/viewvc/llvm-project?rev=145439&view=rev
>>>> Log:
>>>> Escape strings when printing module maps, for silly operating systems
>>>> that use \ as a separator.
>>>>
>>>> +static void printEscapedString(llvm::raw_ostream &OS, StringRef String) {
>>>
>>> This looks familiar, should it become a method on StringRef or something?
>>
>> I couldn't decide where up put it <g>. I'll move it into StringRef.
>
> raw_ostream::write_escaped does the same thing.
Ahhh, thanks! I'm using this in r145491.
- Doug
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits