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 | 002a50ac64f84256e8fb5911528defd0c5693bf9 (patch) | |
tree | cae56ce2ded36abf0120ff8ba3c9f35bac7e8dc2 /lib/Target | |
parent | 54ac8b11a1106303ba2a1c0a01174ac38d1ff3f6 (diff) | |
download | external_llvm-002a50ac64f84256e8fb5911528defd0c5693bf9.zip external_llvm-002a50ac64f84256e8fb5911528defd0c5693bf9.tar.gz external_llvm-002a50ac64f84256e8fb5911528defd0c5693bf9.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/X86/Printer.cpp | 8 | ||||
-rw-r--r-- | lib/Target/X86/X86AsmPrinter.cpp | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/Target/X86/Printer.cpp b/lib/Target/X86/Printer.cpp index 24e64e4..adb296f 100644 --- a/lib/Target/X86/Printer.cpp +++ b/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(); diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp index 24e64e4..adb296f 100644 --- a/lib/Target/X86/X86AsmPrinter.cpp +++ b/lib/Target/X86/X86AsmPrinter.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(); |