diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-28 22:20:16 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-28 22:20:16 +0000 |
commit | c296fcc39e5bbb187251d76103afaa9f5c6293e9 (patch) | |
tree | 7f01df7ce927dd2a47da119059a77f8af9b13b70 /llvm/lib/Object/IRObjectFile.cpp | |
parent | 521a941074e35e2442aeb56a29803b0405fe6f71 (diff) | |
download | llvm-c296fcc39e5bbb187251d76103afaa9f5c6293e9.zip llvm-c296fcc39e5bbb187251d76103afaa9f5c6293e9.tar.gz llvm-c296fcc39e5bbb187251d76103afaa9f5c6293e9.tar.bz2 |
AsmWriter: Escape string fields in metadata
Properly escape string fields in metadata. I've added a spot-check with
direct coverage for `MDFile::getFilename()`, but we'll get more coverage
once the hierarchy is moved into place (since this comes up in various
checked-in testcases).
I've replicated the `if` logic using the `ShouldSkipEmpty` flag
(although a follow-up commit is going to change how often this flag is
specified); no NFCI other than escaping the string fields.
llvm-svn: 230875
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions