diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-21 06:55:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-21 06:55:27 +0000 |
commit | 2c0b435ba6d4b89c0e671cf260fb6943f329edf3 (patch) | |
tree | d5ee1b71407d7e1f153ce017a2abfee2970f8929 /llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp | |
parent | 8a4995e42a0fb98dfc971f1f24f1bfd88cb59e70 (diff) | |
download | bcm5719-llvm-2c0b435ba6d4b89c0e671cf260fb6943f329edf3.tar.gz bcm5719-llvm-2c0b435ba6d4b89c0e671cf260fb6943f329edf3.zip |
Rename SwitchSection -> switchSection to avoid conflicting with a future
change.
llvm-svn: 24443
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp index e902b2d597f..b1801fd4af7 100644 --- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp +++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp @@ -66,7 +66,7 @@ namespace { bool runOnMachineFunction(MachineFunction &F); bool doInitialization(Module &M); bool doFinalization(Module &M); - void SwitchSection(std::ostream &OS, const char *NewSection); + void switchSection(std::ostream &OS, const char *NewSection); }; } // end of anonymous namespace @@ -180,7 +180,7 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) { printConstantPool(MF.getConstantPool()); // Print out labels for the function. - SwitchSection(O, "text"); + switchSection(O, "text"); emitAlignment(4); O << "\t.globl " << CurrentFnName << "\n"; O << "\t.ent " << CurrentFnName << "\n"; @@ -220,9 +220,9 @@ void AlphaAsmPrinter::printConstantPool(MachineConstantPool *MCP) { if (CP.empty()) return; - SwitchSection(O, "rodata"); + switchSection(O, "rodata"); for (unsigned i = 0, e = CP.size(); i != e; ++i) { - // SwitchSection(O, "section .rodata, \"dr\""); + // switchSection(O, "section .rodata, \"dr\""); emitAlignment(TD.getTypeAlignmentShift(CP[i]->getType())); O << PrivateGlobalPrefix << "CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t" << CommentString << *CP[i] << "\n"; @@ -243,10 +243,10 @@ bool AlphaAsmPrinter::doInitialization(Module &M) } -// SwitchSection - Switch to the specified section of the executable if we are +// switchSection - Switch to the specified section of the executable if we are // not already in it! // -void AlphaAsmPrinter::SwitchSection(std::ostream &OS, const char *NewSection) +void AlphaAsmPrinter::switchSection(std::ostream &OS, const char *NewSection) { if (CurSection != NewSection) { CurSection = NewSection; @@ -269,7 +269,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { if (C->isNullValue() && (I->hasLinkOnceLinkage() || I->hasInternalLinkage() || I->hasWeakLinkage() /* FIXME: Verify correct */)) { - SwitchSection(O, "data"); + switchSection(O, "data"); if (I->hasInternalLinkage()) O << "\t.local " << name << "\n"; @@ -284,7 +284,7 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { case GlobalValue::WeakLinkage: // FIXME: Verify correct for weak. // Nonnull linkonce -> weak O << "\t.weak " << name << "\n"; - SwitchSection(O, ""); + switchSection(O, ""); O << "\t.section\t.llvm.linkonce.d." << name << ",\"aw\",@progbits\n"; break; case GlobalValue::AppendingLinkage: @@ -296,9 +296,9 @@ bool AlphaAsmPrinter::doFinalization(Module &M) { // FALL THROUGH case GlobalValue::InternalLinkage: if (C->isNullValue()) - SwitchSection(O, "bss"); + switchSection(O, "bss"); else - SwitchSection(O, "data"); + switchSection(O, "data"); break; case GlobalValue::GhostLinkage: std::cerr << "GhostLinkage cannot appear in AlphaAsmPrinter!\n"; |