summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-18 02:22:55 +0000
committerChris Lattner <sabre@nondot.org>2004-08-18 02:22:55 +0000
commitf746a7d09b219619b16ffa875e762d6e24868d6f (patch)
tree51be9a351ad3c9880f3a44fd308255b4094f01bc
parentb6e678b1c8ff07e3ba681f1f365762ef8c4d84f7 (diff)
downloadllvm-f746a7d09b219619b16ffa875e762d6e24868d6f.tar.gz
llvm-f746a7d09b219619b16ffa875e762d6e24868d6f.tar.bz2
llvm-f746a7d09b219619b16ffa875e762d6e24868d6f.tar.xz
Rename var
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15897 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter.cpp20
-rw-r--r--lib/Target/PowerPC/PPC32AsmPrinter.cpp6
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp6
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp4
4 files changed, 18 insertions, 18 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 9d99bdc4cd..79580294a6 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -225,21 +225,21 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
U.FVal = Val;
if (Data64bitsDirective)
- O << Data64bitsDirective << U.UVal << "\t" << CommentChar
+ O << Data64bitsDirective << U.UVal << "\t" << CommentString
<< " double value: " << Val << "\n";
else if (TD.isBigEndian()) {
O << Data32bitsDirective << unsigned(U.UVal >> 32)
- << "\t" << CommentChar << " double most significant word "
+ << "\t" << CommentString << " double most significant word "
<< Val << "\n";
O << Data32bitsDirective << unsigned(U.UVal)
- << "\t" << CommentChar << " double least significant word "
+ << "\t" << CommentString << " double least significant word "
<< Val << "\n";
} else {
O << Data32bitsDirective << unsigned(U.UVal)
- << "\t" << CommentChar << " double least significant word " << Val
+ << "\t" << CommentString << " double least significant word " << Val
<< "\n";
O << Data32bitsDirective << unsigned(U.UVal >> 32)
- << "\t" << CommentChar << " double most significant word " << Val
+ << "\t" << CommentString << " double most significant word " << Val
<< "\n";
}
return;
@@ -250,7 +250,7 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
} U;
U.FVal = Val;
- O << Data32bitsDirective << U.UVal << "\t" << CommentChar
+ O << Data32bitsDirective << U.UVal << "\t" << CommentString
<< " float " << Val << "\n";
return;
}
@@ -262,17 +262,17 @@ void AsmPrinter::emitGlobalConstant(const Constant *CV) {
O << Data64bitsDirective << Val << "\n";
else if (TD.isBigEndian()) {
O << Data32bitsDirective << unsigned(Val >> 32)
- << "\t" << CommentChar << " Double-word most significant word "
+ << "\t" << CommentString << " Double-word most significant word "
<< Val << "\n";
O << Data32bitsDirective << unsigned(Val)
- << "\t" << CommentChar << " Double-word least significant word "
+ << "\t" << CommentString << " Double-word least significant word "
<< Val << "\n";
} else {
O << Data32bitsDirective << unsigned(Val)
- << "\t" << CommentChar << " Double-word least significant word "
+ << "\t" << CommentString << " Double-word least significant word "
<< Val << "\n";
O << Data32bitsDirective << unsigned(Val >> 32)
- << "\t" << CommentChar << " Double-word most significant word "
+ << "\t" << CommentString << " Double-word most significant word "
<< Val << "\n";
}
return;
diff --git a/lib/Target/PowerPC/PPC32AsmPrinter.cpp b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
index acd9dfd0ce..07aaa49be5 100644
--- a/lib/Target/PowerPC/PPC32AsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPC32AsmPrinter.cpp
@@ -45,7 +45,7 @@ namespace {
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
: AsmPrinter(O, TM), LabelNumber(0) {
- CommentChar = ";";
+ CommentString = ";";
GlobalPrefix = "_";
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
Data64bitsDirective = 0; // we can't emit a 64-bit unit
@@ -123,7 +123,7 @@ void PPC32AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.const\n";
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
- O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
+ O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
@@ -150,7 +150,7 @@ bool PPC32AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
I != E; ++I) {
// Print a label for the basic block.
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
- << CommentChar << " " << I->getBasicBlock()->getName() << "\n";
+ << CommentString << " " << I->getBasicBlock()->getName() << "\n";
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index acd9dfd0ce..07aaa49be5 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -45,7 +45,7 @@ namespace {
PPC32AsmPrinter(std::ostream &O, TargetMachine &TM)
: AsmPrinter(O, TM), LabelNumber(0) {
- CommentChar = ";";
+ CommentString = ";";
GlobalPrefix = "_";
ZeroDirective = "\t.space\t"; // ".space N" emits N zeros.
Data64bitsDirective = 0; // we can't emit a 64-bit unit
@@ -123,7 +123,7 @@ void PPC32AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.const\n";
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
- O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
+ O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
@@ -150,7 +150,7 @@ bool PPC32AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
I != E; ++I) {
// Print a label for the basic block.
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
- << CommentChar << " " << I->getBasicBlock()->getName() << "\n";
+ << CommentString << " " << I->getBasicBlock()->getName() << "\n";
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index e13727707f..a0f046b62f 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -150,7 +150,7 @@ void X86AsmPrinter::printConstantPool(MachineConstantPool *MCP) {
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
O << "\t.section .rodata\n";
emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType()));
- O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentChar
+ O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString
<< *CP[i] << "\n";
emitGlobalConstant(CP[i]);
}
@@ -178,7 +178,7 @@ bool X86AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
I != E; ++I) {
// Print a label for the basic block.
O << ".LBB" << CurrentFnName << "_" << I->getNumber() << ":\t"
- << CommentChar << " " << I->getBasicBlock()->getName() << "\n";
+ << CommentString << " " << I->getBasicBlock()->getName() << "\n";
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.