aboutsummaryrefslogtreecommitdiff
path: root/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
commitcdf38c4edb892c356cfaa3c09c57728bc8d6bfd0 (patch)
tree23acb79c44a2b1034739fd770d2f9b35a7834122 /lib/Target/Alpha/AlphaAsmPrinter.cpp
parent5425267e84946676f1e7424ee056f71b23497ee7 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaAsmPrinter.cpp')
-rw-r--r--lib/Target/Alpha/AlphaAsmPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AlphaAsmPrinter.cpp
index 5d1f522ca0..b078b68bd7 100644
--- a/lib/Target/Alpha/AlphaAsmPrinter.cpp
+++ b/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.