forked from OSchip/llvm-project
I think local symbols in X86 GAS have to start with .L, not just
.; so I have changed the basic block markers to start with .L. I also broke up a >80char line. llvm-svn: 7452
This commit is contained in:
parent
7e54f8f3bf
commit
a2d9f40693
|
@ -431,7 +431,7 @@ bool Printer::runOnMachineFunction(MachineFunction &MF) {
|
||||||
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
|
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
// Print a label for the basic block.
|
// Print a label for the basic block.
|
||||||
O << ".BB" << NumberForBB[I->getBasicBlock()] << ":\t# "
|
O << ".LBB" << NumberForBB[I->getBasicBlock()] << ":\t# "
|
||||||
<< I->getBasicBlock()->getName() << "\n";
|
<< I->getBasicBlock()->getName() << "\n";
|
||||||
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
|
||||||
II != E; ++II) {
|
II != E; ++II) {
|
||||||
|
@ -485,11 +485,13 @@ void Printer::printOp(const MachineOperand &MO,
|
||||||
ValueMapTy::const_iterator i = NumberForBB.find(MO.getVRegValue());
|
ValueMapTy::const_iterator i = NumberForBB.find(MO.getVRegValue());
|
||||||
assert (i != NumberForBB.end()
|
assert (i != NumberForBB.end()
|
||||||
&& "Could not find a BB I previously put in the NumberForBB map!");
|
&& "Could not find a BB I previously put in the NumberForBB map!");
|
||||||
O << ".BB" << i->second << " # PC rel: " << MO.getVRegValue()->getName();
|
O << ".LBB" << i->second << " # PC rel: " << MO.getVRegValue()->getName();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
case MachineOperand::MO_GlobalAddress:
|
case MachineOperand::MO_GlobalAddress:
|
||||||
if (!elideOffsetKeyword) O << "OFFSET "; O << Mang->getValueName(MO.getGlobal());
|
if (!elideOffsetKeyword)
|
||||||
|
O << "OFFSET ";
|
||||||
|
O << Mang->getValueName(MO.getGlobal());
|
||||||
return;
|
return;
|
||||||
case MachineOperand::MO_ExternalSymbol:
|
case MachineOperand::MO_ExternalSymbol:
|
||||||
O << MO.getSymbolName();
|
O << MO.getSymbolName();
|
||||||
|
|
Loading…
Reference in New Issue