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)
commit79cf9705c790a42fb932cafe02244a0cea5a1476
treef57dc66ed53f4a26aaf514eb21f73601cebbc014
parent3a46c142bf01f54549680fb3839df0928af124c8
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`).

llvm-svn: 230873
llvm/lib/IR/AsmWriter.cpp