aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-21 07:06:58 +0000
committerChris Lattner <sabre@nondot.org>2005-11-21 07:06:58 +0000
commitf6163a00793b4bae585d7b77a10faf3f51eb431b (patch)
tree738f4546f9a15414fd5e758d06ee4a41ad96210f /lib/Target/PowerPC/PPCAsmPrinter.cpp
parentac28fbd0436dd8b2bc0c071ba150b60bbfca67f3 (diff)
This is now implemented in common codegen code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCAsmPrinter.cpp')
-rw-r--r--lib/Target/PowerPC/PPCAsmPrinter.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/Target/PowerPC/PPCAsmPrinter.cpp b/lib/Target/PowerPC/PPCAsmPrinter.cpp
index 666f65515c..cf0d5dacd1 100644
--- a/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ b/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -44,7 +44,6 @@ namespace {
Statistic<> EmittedInsts("asm-printer", "Number of machine instrs printed");
class PPCAsmPrinter : public AsmPrinter {
- std::string CurSection;
public:
std::set<std::string> FnStubs, GVStubs, LinkOnceStubs;
@@ -63,24 +62,6 @@ namespace {
return static_cast<PPCTargetMachine&>(TM);
}
- /// SwitchSection - Switch to the specified section of the executable if we
- /// are not already in it!
- ///
- void SwitchSection(const char *NewSection, const GlobalValue *GV) {
- std::string NS;
-
- if (GV && GV->hasSection())
- NS = ".section " + GV->getSection();
- else
- NS = NewSection;
-
- if (CurSection != NS) {
- CurSection = NS;
- if (!CurSection.empty())
- O << "\t" << CurSection << "\n";
- }
- }
-
unsigned enumRegToMachineReg(unsigned enumReg) {
switch (enumReg) {
default: assert(0 && "Unhandled register!"); break;
@@ -466,7 +447,6 @@ void DarwinAsmPrinter::printConstantPool(MachineConstantPool *MCP) {
bool DarwinAsmPrinter::doInitialization(Module &M) {
if (TM.getSubtarget<PPCSubtarget>().isGigaProcessor())
O << "\t.machine ppc970\n";
- SwitchSection("", 0);
AsmPrinter::doInitialization(M);
// Darwin wants symbols to be quoted if they have complex names.