diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2003-07-31 17:38:52 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-07-31 17:38:52 +0000 |
| commit | a2d9f4069339a5d70dcad740ebbaf7d63ad17821 (patch) | |
| tree | 9ad93b4d9883765fabe6d54fa2acd855cc8d11ff /llvm/lib | |
| parent | 7e54f8f3bf6e3c0817c4ed77352eadb617b05413 (diff) | |
| download | bcm5719-llvm-a2d9f4069339a5d70dcad740ebbaf7d63ad17821.tar.gz bcm5719-llvm-a2d9f4069339a5d70dcad740ebbaf7d63ad17821.zip | |
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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/Printer.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/Printer.cpp b/llvm/lib/Target/X86/Printer.cpp index 24e64e492ce..adb296fdb6c 100644 --- a/llvm/lib/Target/X86/Printer.cpp +++ b/llvm/lib/Target/X86/Printer.cpp @@ -431,7 +431,7 @@ bool Printer::runOnMachineFunction(MachineFunction &MF) { for (MachineFunction::const_iterator I = MF.begin(), E = MF.end(); I != E; ++I) { // Print a label for the basic block. - O << ".BB" << NumberForBB[I->getBasicBlock()] << ":\t# " + O << ".LBB" << NumberForBB[I->getBasicBlock()] << ":\t# " << I->getBasicBlock()->getName() << "\n"; for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end(); II != E; ++II) { @@ -485,11 +485,13 @@ void Printer::printOp(const MachineOperand &MO, ValueMapTy::const_iterator i = NumberForBB.find(MO.getVRegValue()); assert (i != NumberForBB.end() && "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; case MachineOperand::MO_GlobalAddress: - if (!elideOffsetKeyword) O << "OFFSET "; O << Mang->getValueName(MO.getGlobal()); + if (!elideOffsetKeyword) + O << "OFFSET "; + O << Mang->getValueName(MO.getGlobal()); return; case MachineOperand::MO_ExternalSymbol: O << MO.getSymbolName(); |

