summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsAsmPrinter.h
diff options
context:
space:
mode:
authorVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-05-08 09:10:15 +0000
committerVasileios Kalintiris <Vasileios.Kalintiris@imgtec.com>2015-05-08 09:10:15 +0000
commit42544d64721bfbfd99832165cd8660ef860841ed (patch)
tree7672d07cdc3f56274ec52ffc309eaed0d2ae9249 /llvm/lib/Target/Mips/MipsAsmPrinter.h
parent337f3eb9292f2e6b5e9185a22fba7039a750bf05 (diff)
downloadbcm5719-llvm-42544d64721bfbfd99832165cd8660ef860841ed.tar.gz
bcm5719-llvm-42544d64721bfbfd99832165cd8660ef860841ed.zip
[mips] Emit the .insn directive for empty basic blocks.
Summary: In microMIPS, labels need to know whether they are on code or data. This is indicated with STO_MIPS_MICROMIPS and can be inferred by being followed by instructions. For empty basic blocks, we can ensure this by emitting the .insn directive after the label. Also, this fixes some failures in our out-of-tree microMIPS buildbots, for the exception handling regression tests under: SingleSource/Regression/C++/EH Reviewers: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9530 llvm-svn: 236815
Diffstat (limited to 'llvm/lib/Target/Mips/MipsAsmPrinter.h')
-rw-r--r--llvm/lib/Target/Mips/MipsAsmPrinter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.h b/llvm/lib/Target/Mips/MipsAsmPrinter.h
index d4c5b809960..a7f3304a3da 100644
--- a/llvm/lib/Target/Mips/MipsAsmPrinter.h
+++ b/llvm/lib/Target/Mips/MipsAsmPrinter.h
@@ -124,6 +124,7 @@ public:
void EmitFunctionEntryLabel() override;
void EmitFunctionBodyStart() override;
void EmitFunctionBodyEnd() override;
+ void EmitBasicBlockEnd(const MachineBasicBlock &MBB) override;
bool isBlockOnlyReachableByFallthrough(
const MachineBasicBlock* MBB) const override;
bool PrintAsmOperand(const MachineInstr *MI, unsigned OpNo,
OpenPOWER on IntegriCloud