From d344242f2e1e4a2ca272ee140a991141eedaa279 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Oct 2002 19:56:24 +0000 Subject: [PATCH] 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 --- lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 58a60b09775..ce81248478a 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 {