aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-14 03:15:54 +0000
committerChris Lattner <sabre@nondot.org>2009-09-14 03:15:54 +0000
commitda5fb6d704adbe833dcf16d12398a87a5af8d01e (patch)
tree922c4b14e158e20e7224d5afdb4d82acdc356f67 /lib
parenta835afd084f0e1c9ce65902b24eac79921547c79 (diff)
downloadexternal_llvm-da5fb6d704adbe833dcf16d12398a87a5af8d01e.zip
external_llvm-da5fb6d704adbe833dcf16d12398a87a5af8d01e.tar.gz
external_llvm-da5fb6d704adbe833dcf16d12398a87a5af8d01e.tar.bz2
PIC16 does allow colon after MBB labels, simplify EmitBasicBlockStart.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81755 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/AsmPrinter/AsmPrinter.cpp7
-rw-r--r--lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp2
2 files changed, 3 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 6249cda..265a837 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/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())
diff --git a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
index 523c27c..795b79a 100644
--- a/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
+++ b/lib/Target/PIC16/AsmPrinter/PIC16AsmPrinter.cpp
@@ -98,7 +98,7 @@ bool PIC16AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// Print a label for the basic block.
if (I != MF.begin()) {
- EmitBasicBlockStart(I, false);
+ EmitBasicBlockStart(I);
O << '\n';
}