AsmWriter: Extract writeStringField(), NFCI
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 28 Feb 2015 22:16:56 +0000 (22:16 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 28 Feb 2015 22:16:56 +0000 (22:16 +0000)
commit9973291e83bebe731132a0f7645ead7426dbc10c
tree13d8512b3ad5cbd8daad40a016217ae7050c588b
parent45909778e7be956006d43a7cc22396732fb2264b
AsmWriter: Extract writeStringField(), NFCI

Extract logic for escaping a string field in the new debug info
hierarchy from `GenericDebugNode`.  A follow-up commit will use it far
more widely (hence the dead code for `ShouldSkipEmpty`).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230873 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/AsmWriter.cpp