aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-15 19:56:24 +0000
committerChris Lattner <sabre@nondot.org>2002-10-15 19:56:24 +0000
commitd344242f2e1e4a2ca272ee140a991141eedaa279 (patch)
tree71b37e93da3255f60ef011a68e68826ca4f2d472
parenta0c8e0a73d959ec04228655bc3f61a5e40dd0b8d (diff)
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
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 58a60b0977..ce81248478 100644
--- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
+++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
@@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) {
if (C == '"') {
Result += "\\\"";
+ } else if (C == '\\') {
+ Result += "\\\\";
} else if (isprint(C)) {
Result += C;
} else {