mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
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
This commit is contained in:
@@ -204,14 +204,18 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
O << Data64bitsDirective << U.UVal << "\n";
|
O << Data64bitsDirective << U.UVal << "\n";
|
||||||
else if (TD.isBigEndian()) {
|
else if (TD.isBigEndian()) {
|
||||||
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
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)
|
O << Data32bitsDirective << unsigned(U.UVal)
|
||||||
<< "\t; double least significant word " << Val << "\n";
|
<< "\t" << CommentChar << " double least significant word "
|
||||||
|
<< Val << "\n";
|
||||||
} else {
|
} else {
|
||||||
O << Data32bitsDirective << unsigned(U.UVal)
|
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)
|
O << Data32bitsDirective << unsigned(U.UVal >> 32)
|
||||||
<< "\t; double most significant word " << Val << "\n";
|
<< "\t" << CommentChar << " double most significant word " << Val
|
||||||
|
<< "\n";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
@@ -221,7 +225,8 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
} U;
|
} U;
|
||||||
U.FVal = Val;
|
U.FVal = Val;
|
||||||
|
|
||||||
O << Data32bitsDirective << U.UVal << "\t; float " << Val << "\n";
|
O << Data32bitsDirective << U.UVal << "\t" << CommentChar
|
||||||
|
<< " float " << Val << "\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
|
} else if (CV->getType() == Type::ULongTy || CV->getType() == Type::LongTy) {
|
||||||
@@ -232,14 +237,18 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
|
|||||||
O << Data64bitsDirective << Val << "\n";
|
O << Data64bitsDirective << Val << "\n";
|
||||||
else if (TD.isBigEndian()) {
|
else if (TD.isBigEndian()) {
|
||||||
O << Data32bitsDirective << unsigned(Val >> 32)
|
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)
|
O << Data32bitsDirective << unsigned(Val)
|
||||||
<< "\t; Double-word least significant word " << Val << "\n";
|
<< "\t" << CommentChar << " Double-word least significant word "
|
||||||
|
<< Val << "\n";
|
||||||
} else {
|
} else {
|
||||||
O << Data32bitsDirective << unsigned(Val)
|
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)
|
O << Data32bitsDirective << unsigned(Val >> 32)
|
||||||
<< "\t; Double-word most significant word " << Val << "\n";
|
<< "\t" << CommentChar << " Double-word most significant word "
|
||||||
|
<< Val << "\n";
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user