[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 17 09:27:16 PDT 2004
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.5 -> 1.6
---
Log message:
Use a designated comment character when printing comments.
---
Diffs of the changes: (+18 -9)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.5 llvm/lib/CodeGen/AsmPrinter.cpp:1.6
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.5 Tue Aug 17 01:48:16 2004
+++ llvm/lib/CodeGen/AsmPrinter.cpp Tue Aug 17 11:27:05 2004
@@ -204,14 +204,18 @@
O << Data64bitsDirective << U.UVal << "\n";
else if (TD.isBigEndian()) {
O << Data32bitsDirective << unsigned(U.UVal >> 32)
- << "\t; double most significant word " << Val << "\n";
+ << "\t" << CommentChar << " double most significant word "
+ << Val << "\n";
O << Data32bitsDirective << unsigned(U.UVal)
- << "\t; double least significant word " << Val << "\n";
+ << "\t" << CommentChar << " double least significant word "
+ << Val << "\n";
} else {
O << Data32bitsDirective << unsigned(U.UVal)
- << "\t; double least significant word " << Val << "\n";
+ << "\t" << CommentChar << " double least significant word " << Val
+ << "\n";
O << Data32bitsDirective << unsigned(U.UVal >> 32)
- << "\t; double most significant word " << Val << "\n";
+ << "\t" << CommentChar << " double most significant word " << Val
+ << "\n";
}
return;
} else {
@@ -221,7 +225,8 @@
} U;
U.FVal = Val;
- O << Data32bitsDirective << U.UVal << "\t; float " << Val << "\n";
+ O << Data32bitsDirective << U.UVal << "\t" << CommentChar
+ << " float " << Val << "\n";
return;
}
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
@@ -232,14 +237,18 @@
O << Data64bitsDirective << Val << "\n";
else if (TD.isBigEndian()) {
O << Data32bitsDirective << unsigned(Val >> 32)
- << "\t; Double-word most significant word " << Val << "\n";
+ << "\t" << CommentChar << " Double-word most significant word "
+ << Val << "\n";
O << Data32bitsDirective << unsigned(Val)
- << "\t; Double-word least significant word " << Val << "\n";
+ << "\t" << CommentChar << " Double-word least significant word "
+ << Val << "\n";
} else {
O << Data32bitsDirective << unsigned(Val)
- << "\t; Double-word least significant word " << Val << "\n";
+ << "\t" << CommentChar << " Double-word least significant word "
+ << Val << "\n";
O << Data32bitsDirective << unsigned(Val >> 32)
- << "\t; Double-word most significant word " << Val << "\n";
+ << "\t" << CommentChar << " Double-word most significant word "
+ << Val << "\n";
}
return;
}
More information about the llvm-commits
mailing list