[llvm-commits] [llvm] r81755 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
Chris Lattner
sabre at nondot.org
Sun Sep 13 20:15:55 PDT 2009
Author: lattner
Date: Sun Sep 13 22:15:54 2009
New Revision: 81755
URL: http://llvm.org/viewvc/llvm-project?rev=81755&view=rev
Log:
PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.
Modified:
llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/trunk/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
Modified: llvm/trunk/include/llvm/CodeGen/AsmPrinter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/AsmPrinter.h?rev=81755&r1=81754&r2=81755&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/AsmPrinter.h (original)
+++ llvm/trunk/include/llvm/CodeGen/AsmPrinter.h Sun Sep 13 22:15:54 2009
@@ -353,8 +353,7 @@
/// EmitBasicBlockStart - This method prints the label for the specified
/// MachineBasicBlock, an alignment (if present) and a comment describing
/// it if appropriate.
- void EmitBasicBlockStart(const MachineBasicBlock *MBB,
- bool printColon = true) const;
+ void EmitBasicBlockStart(const MachineBasicBlock *MBB) const;
protected:
/// EmitZeros - Emit a block of zeros.
///
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=81755&r1=81754&r2=81755&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Sun Sep 13 22:15:54 2009
@@ -1648,15 +1648,12 @@
/// 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())
Modified: llvm/trunk/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp?rev=81755&r1=81754&r2=81755&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp Sun Sep 13 22:15:54 2009
@@ -98,7 +98,7 @@
// Print a label for the basic block.
if (I != MF.begin()) {
- EmitBasicBlockStart(I, false);
+ EmitBasicBlockStart(I);
O << '\n';
}
More information about the llvm-commits
mailing list