summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-05-02 05:37:32 +0000
committerNate Begeman <natebegeman@mac.com>2006-05-02 05:37:32 +0000
commitb9d4f8324dc6b076b48d1583ea55d7c9c22407ad (patch)
tree660fbbaf1dffadfba25f0240c6043dd370ea03e7 /llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
parent01364fbba8345f27e4c30fb8021a0a97094821a5 (diff)
downloadbcm5719-llvm-b9d4f8324dc6b076b48d1583ea55d7c9c22407ad.tar.gz
bcm5719-llvm-b9d4f8324dc6b076b48d1583ea55d7c9c22407ad.zip
Extend printBasicBlockLabel a bit so that it can be used to print all
basic block labels, consolidating the code to do so in one place for each target. llvm-svn: 28050
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 5d1f522ca0a..b078b68bd7f 100644
--- a/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
@@ -191,9 +191,8 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// Print out code for the function.
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
I != E; ++I) {
- // Print a label for the basic block.
- O << PrivateGlobalPrefix << "LBB" << CurrentFnName << "_" << I->getNumber()
- << ":\t" << CommentString << " " << I->getBasicBlock()->getName() << "\n";
+ printBasicBlockLabel(I, true);
+ O << '\n';
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
II != E; ++II) {
// Print the assembly for the instruction.
OpenPOWER on IntegriCloud