[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Oct 18 21:52:01 PDT 2003
Changes in directory llvm/lib/Target/X86:
Printer.cpp updated: 1.63 -> 1.64
---
Log message:
.string adds an implicit zero at the end. This is not what we wanted.
This fixes PR#44.
---
Diffs of the changes: (+1 -1)
Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.63 llvm/lib/Target/X86/Printer.cpp:1.64
--- llvm/lib/Target/X86/Printer.cpp:1.63 Thu Oct 16 13:28:56 2003
+++ llvm/lib/Target/X86/Printer.cpp Sat Oct 18 21:51:01 2003
@@ -329,7 +329,7 @@
} else if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) {
if (isStringCompatible(CVA)) {
// print the string alone and return
- O << "\t.string\t" << getAsCString(CVA) << "\n";
+ O << "\t.ascii\t" << getAsCString(CVA) << "\n";
} else { // Not a string. Print the values in successive locations
const std::vector<Use> &constValues = CVA->getValues();
for (unsigned i=0; i < constValues.size(); i++)
More information about the llvm-commits
mailing list