mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-28 17:27:55 +00:00
Make sure to escape \'s when they are output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0c8e0a73d
commit
d344242f2e
@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) {
|
||||
|
||||
if (C == '"') {
|
||||
Result += "\\\"";
|
||||
} else if (C == '\\') {
|
||||
Result += "\\\\";
|
||||
} else if (isprint(C)) {
|
||||
Result += C;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user