summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:11:42 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-09-24 22:11:42 +0000
commit8ac1127ed6cda9f0df13eef03dcb97eafc2fb8d5 (patch)
tree18a36bce560d7f5b6d3a84204631539fcb87288d /llvm/lib
parent69721aa85cc5cc9eb172e41ffea67aff28a302c8 (diff)
downloadbcm5719-llvm-8ac1127ed6cda9f0df13eef03dcb97eafc2fb8d5.tar.gz
bcm5719-llvm-8ac1127ed6cda9f0df13eef03dcb97eafc2fb8d5.zip
SPU section handling is really huge mess. Replace remaining TAI calls for sections with explicit names in order not to block existing backends during section handling migration. SPU folks! Please consider using new section handling facility someday.
llvm-svn: 56570
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp b/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
index a7db816ed0e..2cfec795d42 100644
--- a/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
+++ b/llvm/lib/Target/CellSPU/SPUAsmPrinter.cpp
@@ -486,7 +486,7 @@ LinuxAsmPrinter::runOnMachineFunction(MachineFunction &MF)
bool LinuxAsmPrinter::doInitialization(Module &M) {
bool Result = AsmPrinter::doInitialization(M);
- SwitchToTextSection(TAI->getTextSection());
+ SwitchToTextSection("\t.text");
// Emit initial debug information.
DW.BeginModule(&M);
MMI = getAnalysisToUpdate<MachineModuleInfo>();
@@ -556,7 +556,7 @@ bool LinuxAsmPrinter::doFinalization(Module &M) {
if (I->isConstant()) {
const ConstantArray *CVA = dyn_cast<ConstantArray>(C);
if (TAI->getCStringSection() && CVA && CVA->isCString()) {
- SwitchToDataSection(TAI->getCStringSection(), I);
+ SwitchToDataSection("\t.cstring", I);
break;
}
}
OpenPOWER on IntegriCloud