diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-17 16:27:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-17 16:27:05 +0000 |
commit | da6beac0ffe39d93822c9c60da287faf14d82e5c (patch) | |
tree | cc801efe5b94a7c5dff22c424822994bbb33a361 /llvm/lib/CodeGen/AsmPrinter.cpp | |
parent | db00f459364d4a57612bdf8233e890b0600bd87d (diff) | |
download | bcm5719-llvm-da6beac0ffe39d93822c9c60da287faf14d82e5c.tar.gz bcm5719-llvm-da6beac0ffe39d93822c9c60da287faf14d82e5c.zip |
Use a designated comment character when printing comments.
llvm-svn: 15880
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter.cpp index 92707528f97..5fb356e58f0 100644 --- a/llvm/lib/CodeGen/AsmPrinter.cpp +++ b/llvm/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; } |