Tweak the MCExternalSymbolizer to print references to C string literals
authorKevin Enderby <enderby@apple.com>
Thu, 16 Jan 2014 18:43:56 +0000 (18:43 +0000)
committerKevin Enderby <enderby@apple.com>
Thu, 16 Jan 2014 18:43:56 +0000 (18:43 +0000)
commitea32ab98f4eb01b0d2400673f66742344bf0a680
tree2628f6a1102eec0c6c18df1de0706175805d898c
parent22939fa0a4d8e139b14fb0d8c915bb45ce53600e
Tweak the MCExternalSymbolizer to print references to C string literals
with raw_ostream's write_escaped() method.

For example darwin's otool(1) program that uses the llvm
disassembler now produces disassembly like this:

leaq 0x7b(%rip), %rdi ## literal pool for: "%f\ntoto\n"

and not print the new lines which messes up the output.

rdar://15145300

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199407 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MCExternalSymbolizer.cpp