Make sure to escape \'s when they are output

llvm-svn: 4179
This commit is contained in:
Chris Lattner 2002-10-15 19:56:24 +00:00
parent 7fc4b5c779
commit aaf6ee80de
1 changed files with 2 additions and 0 deletions

View File

@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) {
if (C == '"') {
Result += "\\\"";
} else if (C == '\\') {
Result += "\\\\";
} else if (isprint(C)) {
Result += C;
} else {