mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56570 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6ec7cf00f0
commit
90a7b88c5b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user