[llvm] 388bfc5 - [ARM] Fix some identing in ARMAsmPrinter::emitInstruction, NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 02:08:42 PST 2021
Author: David Green
Date: 2021-12-01T10:08:37Z
New Revision: 388bfc540860871d0e922e59f4f8f2d26da71049
URL: https://github.com/llvm/llvm-project/commit/388bfc540860871d0e922e59f4f8f2d26da71049
DIFF: https://github.com/llvm/llvm-project/commit/388bfc540860871d0e922e59f4f8f2d26da71049.diff
LOG: [ARM] Fix some identing in ARMAsmPrinter::emitInstruction, NFC
Added:
Modified:
llvm/lib/Target/ARM/ARMAsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
index 9901b86b0e879..2e22c9526f997 100644
--- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
+++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp
@@ -1535,17 +1535,17 @@ void ARMAsmPrinter::emitInstruction(const MachineInstr *MI) {
MCInst.addExpr(BranchTarget);
}
- if (Opc == ARM::t2BFic) {
- const MCExpr *ElseLabel = MCSymbolRefExpr::create(
- getBFLabel(DL.getPrivateGlobalPrefix(), getFunctionNumber(),
- MI->getOperand(2).getIndex(), OutContext),
- OutContext);
- MCInst.addExpr(ElseLabel);
- MCInst.addImm(MI->getOperand(3).getImm());
- } else {
- MCInst.addImm(MI->getOperand(2).getImm())
- .addReg(MI->getOperand(3).getReg());
- }
+ if (Opc == ARM::t2BFic) {
+ const MCExpr *ElseLabel = MCSymbolRefExpr::create(
+ getBFLabel(DL.getPrivateGlobalPrefix(), getFunctionNumber(),
+ MI->getOperand(2).getIndex(), OutContext),
+ OutContext);
+ MCInst.addExpr(ElseLabel);
+ MCInst.addImm(MI->getOperand(3).getImm());
+ } else {
+ MCInst.addImm(MI->getOperand(2).getImm())
+ .addReg(MI->getOperand(3).getReg());
+ }
EmitToStreamer(*OutStreamer, MCInst);
return;
More information about the llvm-commits
mailing list