From 8b8b9515d6b18f9fdd0303a6ce603f5b5997ef50 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Nov 2005 07:51:23 +0000 Subject: [PATCH] Adjust to capitalized AsmPrinter method names git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24456 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Alpha/AlphaAsmPrinter.cpp | 12 ++++++------ lib/Target/IA64/IA64AsmPrinter.cpp | 12 ++++++------ lib/Target/PowerPC/PPCAsmPrinter.cpp | 22 +++++++++++----------- lib/Target/X86/X86ATTAsmPrinter.cpp | 4 ++-- lib/Target/X86/X86AsmPrinter.cpp | 10 +++++----- lib/Target/X86/X86IntelAsmPrinter.cpp | 4 ++-- 6 files changed, 32 insertions(+), 32 deletions(-) diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp index 7f9f0b77820..d9f1f88c59b 100644 --- a/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -169,7 +169,7 @@ void AlphaAsmPrinter::printMachineInstruction(const MachineInstr *MI) { /// method to print assembly for each instruction. /// bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - setupMachineFunction(MF); + SetupMachineFunction(MF); O << "\n\n"; // Print out constants referenced by the function @@ -177,7 +177,7 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. SwitchSection("\t.section .text", MF.getFunction()); - emitAlignment(4); + EmitAlignment(4); O << "\t.globl " << CurrentFnName << "\n"; O << "\t.ent " << CurrentFnName << "\n"; @@ -218,10 +218,10 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) { SwitchSection("\t.section .rodata", 0); for (unsigned i = 0, e = CP.size(); i != e; ++i) { - emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); + EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString << *CP[i] << "\n"; - emitGlobalConstant(CP[i]); + EmitGlobalConstant(CP[i]); } } @@ -285,7 +285,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { abort(); } - emitAlignment(Align); + EmitAlignment(Align); O << "\t.type " << name << ",@object\n"; O << "\t.size " << name << "," << Size << "\n"; O << name << ":\t\t\t\t# "; @@ -293,7 +293,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { O << " = "; WriteAsOperand(O, C, false, false, &M); O << "\n"; - emitGlobalConstant(C); + EmitGlobalConstant(C); } } diff --git a/lib/Target/IA64/IA64AsmPrinter.cpp b/lib/Target/IA64/IA64AsmPrinter.cpp index 89c2565f71e..c2a7b93e769 100644 --- a/lib/Target/IA64/IA64AsmPrinter.cpp +++ b/lib/Target/IA64/IA64AsmPrinter.cpp @@ -60,10 +60,10 @@ void IA64SharedAsmPrinter::printConstantPool(MachineConstantPool *MCP) { // FIXME: would be nice to have rodata (no 'w') when appropriate? SwitchSection("\n\t.section .data, \"aw\", \"progbits\"\n", 0); for (unsigned i = 0, e = CP.size(); i != e; ++i) { - emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); + EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString << *CP[i] << "\n"; - emitGlobalConstant(CP[i]); + EmitGlobalConstant(CP[i]); } } @@ -120,7 +120,7 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) { abort(); } - emitAlignment(Align); + EmitAlignment(Align); O << "\t.type " << name << ",@object\n"; O << "\t.size " << name << "," << Size << "\n"; O << name << ":\t\t\t\t// "; @@ -128,7 +128,7 @@ bool IA64SharedAsmPrinter::doFinalization(Module &M) { O << " = "; WriteAsOperand(O, C, false, false, &M); O << "\n"; - emitGlobalConstant(C); + EmitGlobalConstant(C); } } @@ -260,7 +260,7 @@ namespace { /// method to print assembly for each instruction. /// bool IA64AsmPrinter::runOnMachineFunction(MachineFunction &MF) { - setupMachineFunction(MF); + SetupMachineFunction(MF); O << "\n\n"; // Print out constants referenced by the function @@ -269,7 +269,7 @@ bool IA64AsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. SwitchSection("\n\t.section .text, \"ax\", \"progbits\"\n", MF.getFunction()); // ^^ means "Allocated instruXions in mem, initialized" - emitAlignment(5); + EmitAlignment(5); O << "\t.global\t" << CurrentFnName << "\n"; O << "\t.type\t" << CurrentFnName << ", @function\n"; O << CurrentFnName << ":\n"; diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp index 4848fca4eb3..4dd99e9beeb 100644 --- a/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -382,7 +382,7 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) { /// method to print assembly for each instruction. /// bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - setupMachineFunction(MF); + SetupMachineFunction(MF); O << "\n\n"; // Print out constants referenced by the function @@ -391,7 +391,7 @@ bool DarwinAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. const Function *F = MF.getFunction(); SwitchSection(".text", F); - emitAlignment(4, F); + EmitAlignment(4, F); if (!F->hasInternalLinkage()) O << "\t.globl\t" << CurrentFnName << "\n"; O << CurrentFnName << ":\n"; @@ -436,12 +436,12 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) { // FIXME: force doubles to be naturally aligned. We should handle this // more correctly in the future. if (CP[i]->getType() == Type::DoubleTy) - emitAlignment(3); + EmitAlignment(3); else - emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); + EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); O << PrivateGlobalPrefix << "CPI" << FunctionNumber << '_' << i << ":\t\t\t\t\t" << CommentString << *CP[i] << '\n'; - emitGlobalConstant(CP[i]); + EmitGlobalConstant(CP[i]); } } @@ -507,9 +507,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { abort(); } - emitAlignment(Align, I); + EmitAlignment(Align, I); O << name << ":\t\t\t\t; '" << I->getName() << "'\n"; - emitGlobalConstant(C); + EmitGlobalConstant(C); } } @@ -520,7 +520,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { if (PICEnabled) { O << ".data\n"; O << ".section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32\n"; - emitAlignment(2); + EmitAlignment(2); O << "L" << *i << "$stub:\n"; O << "\t.indirect_symbol " << *i << "\n"; O << "\tmflr r0\n"; @@ -539,7 +539,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) { O << "\t.long dyld_stub_binding_helper\n"; } else { O << "\t.section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16\n"; - emitAlignment(4); + EmitAlignment(4); O << "L" << *i << "$stub:\n"; O << "\t.indirect_symbol " << *i << "\n"; O << "\tlis r11,ha16(L" << *i << "$lazy_ptr)\n"; @@ -649,7 +649,7 @@ void AIXAsmPrinter::printConstantPool(MachineConstantPool *MCP) { << "\n"; O << PrivateGlobalPrefix << "CPI" << FunctionNumber << '_' << i << ":\t\t\t\t\t;" << *CP[i] << '\n'; - emitGlobalConstant(CP[i]); + EmitGlobalConstant(CP[i]); } } @@ -677,7 +677,7 @@ bool AIXAsmPrinter::doInitialization(Module &M) { O << "\t.csect _global.rw_c[RW],3\n"; } O << Name << ":\n"; - emitGlobalConstant(C); + EmitGlobalConstant(C); } // Output labels for globals diff --git a/lib/Target/X86/X86ATTAsmPrinter.cpp b/lib/Target/X86/X86ATTAsmPrinter.cpp index 6c26e0a5435..30cfd7433a8 100755 --- a/lib/Target/X86/X86ATTAsmPrinter.cpp +++ b/lib/Target/X86/X86ATTAsmPrinter.cpp @@ -25,7 +25,7 @@ using namespace x86; /// method to print assembly for each instruction. /// bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - setupMachineFunction(MF); + SetupMachineFunction(MF); O << "\n\n"; // Print out constants referenced by the function @@ -33,7 +33,7 @@ bool X86ATTAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. SwitchSection("\t.text\n", MF.getFunction()); - emitAlignment(4); // FIXME: This should be parameterized somewhere. + EmitAlignment(4); // FIXME: This should be parameterized somewhere. O << "\t.globl\t" << CurrentFnName << "\n"; if (!forCygwin && !forDarwin) O << "\t.type\t" << CurrentFnName << ", @function\n"; diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index e0bd0de6c86..1a7d3680228 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.cpp @@ -90,12 +90,12 @@ void X86SharedAsmPrinter::printConstantPool(MachineConstantPool *MCP) { // FIXME: force doubles to be naturally aligned. We should handle this // more correctly in the future. if (CP[i]->getType() == Type::DoubleTy) - emitAlignment(3); + EmitAlignment(3); else - emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); + EmitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString << *CP[i] << "\n"; - emitGlobalConstant(CP[i]); + EmitGlobalConstant(CP[i]); } } @@ -149,7 +149,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) { break; } - emitAlignment(Align); + EmitAlignment(Align); if (!forCygwin && !forDarwin) { O << "\t.type " << name << ",@object\n"; O << "\t.size " << name << "," << Size << "\n"; @@ -159,7 +159,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) { O << " = "; WriteAsOperand(O, C, false, false, &M); O << "\n"; - emitGlobalConstant(C); + EmitGlobalConstant(C); } } diff --git a/lib/Target/X86/X86IntelAsmPrinter.cpp b/lib/Target/X86/X86IntelAsmPrinter.cpp index 492fe7269cc..6a8fcabe975 100755 --- a/lib/Target/X86/X86IntelAsmPrinter.cpp +++ b/lib/Target/X86/X86IntelAsmPrinter.cpp @@ -25,7 +25,7 @@ using namespace x86; /// method to print assembly for each instruction. /// bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) { - setupMachineFunction(MF); + SetupMachineFunction(MF); O << "\n\n"; // Print out constants referenced by the function @@ -33,7 +33,7 @@ bool X86IntelAsmPrinter::runOnMachineFunction(MachineFunction &MF) { // Print out labels for the function. SwitchSection("\t.text\n", MF.getFunction()); - emitAlignment(4); + EmitAlignment(4); O << "\t.globl\t" << CurrentFnName << "\n"; if (!forCygwin && !forDarwin) O << "\t.type\t" << CurrentFnName << ", @function\n";