[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 15 14:57:01 PDT 2002


Changes in directory llvm/lib/Target/Sparc:

EmitAssembly.cpp updated: 1.62 -> 1.63

---
Log message:

Make sure to escape \'s when they are output


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.62 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.63
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.62	Mon Oct 14 01:14:18 2002
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp	Tue Oct 15 14:56:24 2002
@@ -586,6 +586,8 @@
 
     if (C == '"') {
       Result += "\\\"";
+    } else if (C == '\\') {
+      Result += "\\\\";
     } else if (isprint(C)) {
       Result += C;
     } else {





More information about the llvm-commits mailing list