aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-17 16:27:05 +0000
committerChris Lattner <sabre@nondot.org>2004-08-17 16:27:05 +0000
commit0554fb6b9cf10717bd6ec099cd8193e9bb079a8d (patch)
treedd4742a4bf0e92c108d90627c823008f33bf8c33 /lib/CodeGen/AsmPrinter.cpp
parent75585268a7761acfce320d1f4da059bea82d2ecd (diff)
Use a designated comment character when printing comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15880 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp27
1 files changed, 18 insertions, 9 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 92707528f9..5fb356e58f 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -204,14 +204,18 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
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 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
} 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 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
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;
}