diff options
author | Chris Lattner <sabre@nondot.org> | 2009-09-14 03:15:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-09-14 03:15:54 +0000 |
commit | 4dc75de733da45b43667cecfc0b849eda453e5f5 (patch) | |
tree | 2f6db1dae828c445b9279c13c465116e1d726d57 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 11b2fc9ea4d8bdbf1d96a391c90e54763a40400a (diff) | |
download | bcm5719-llvm-4dc75de733da45b43667cecfc0b849eda453e5f5.tar.gz bcm5719-llvm-4dc75de733da45b43667cecfc0b849eda453e5f5.zip |
PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.
llvm-svn: 81755
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index 6249cda695b..265a837822f 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -1648,15 +1648,12 @@ MCSymbol *AsmPrinter::GetMBBSymbol(unsigned MBBID) const { /// EmitBasicBlockStart - This method prints the label for the specified /// MachineBasicBlock, an alignment (if present) and a comment describing /// it if appropriate. -void AsmPrinter::EmitBasicBlockStart(const MachineBasicBlock *MBB, - bool PrintColon) const { +void AsmPrinter::EmitBasicBlockStart(const MachineBasicBlock *MBB) const { if (unsigned Align = MBB->getAlignment()) EmitAlignment(Log2_32(Align)); GetMBBSymbol(MBB->getNumber())->print(O, MAI); - - if (PrintColon) - O << ':'; + O << ':'; if (VerboseAsm) { if (const BasicBlock *BB = MBB->getBasicBlock()) |