summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/asm-path-writer.ll
Commit message (Collapse)AuthorAgeFilesLines
* Print quoted backslashes in LLVM IR as \\ instead of \5CReid Kleckner2019-10-101-2/+2
| | | | | | | | | This improves readability of Windows path string literals in LLVM IR. The LLVM assembler has supported \\ in IR strings for a long time, but the lexer doesn't tolerate escaped quotes, so they have to be printed as \22 for now. llvm-svn: 374415
* [ThinLTO] Escape module paths when printingAndrew Ng2018-07-121-0/+6
We have located a bug in AssemblyWriter::printModuleSummaryIndex(). This function outputs path strings incorrectly. Backslashes in the strings are not correctly escaped. Consequently, if a path name contains a backslash followed by two hexadecimal characters, the sequence is incorrectly interpreted when the output is read by another component. This mangles the path and results in error. This patch fixes this issue by calling printEscapedString() to output the module paths. Patch by Chris Jackson. Differential Revision: https://reviews.llvm.org/D49090 llvm-svn: 336908
OpenPOWER on IntegriCloud