summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-06-22 12:44:16 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-06-22 12:44:16 +0000
commit2b7fef681fb65798e756c463dd3198e5af87f300 (patch)
treecc566e6794e45712f4bc3efbc35c71c93472b218 /llvm/lib/Target/BPF/BPFAsmPrinter.cpp
parent716859aa644f0df05a84b77f8bd11a057083efe1 (diff)
downloadbcm5719-llvm-2b7fef681fb65798e756c463dd3198e5af87f300.tar.gz
bcm5719-llvm-2b7fef681fb65798e756c463dd3198e5af87f300.zip
Delete more dead code.
Found by gcc 6. llvm-svn: 273402
Diffstat (limited to 'llvm/lib/Target/BPF/BPFAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/BPF/BPFAsmPrinter.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/llvm/lib/Target/BPF/BPFAsmPrinter.cpp b/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
index 10ec6587550..1078b065218 100644
--- a/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
+++ b/llvm/lib/Target/BPF/BPFAsmPrinter.cpp
@@ -40,38 +40,10 @@ public:
const char *getPassName() const override { return "BPF Assembly Printer"; }
- void printOperand(const MachineInstr *MI, int OpNum, raw_ostream &O,
- const char *Modifier = nullptr);
void EmitInstruction(const MachineInstr *MI) override;
};
}
-void BPFAsmPrinter::printOperand(const MachineInstr *MI, int OpNum,
- raw_ostream &O, const char *Modifier) {
- const MachineOperand &MO = MI->getOperand(OpNum);
-
- switch (MO.getType()) {
- case MachineOperand::MO_Register:
- O << BPFInstPrinter::getRegisterName(MO.getReg());
- break;
-
- case MachineOperand::MO_Immediate:
- O << MO.getImm();
- break;
-
- case MachineOperand::MO_MachineBasicBlock:
- O << *MO.getMBB()->getSymbol();
- break;
-
- case MachineOperand::MO_GlobalAddress:
- O << *getSymbol(MO.getGlobal());
- break;
-
- default:
- llvm_unreachable("<unknown operand type>");
- }
-}
-
void BPFAsmPrinter::EmitInstruction(const MachineInstr *MI) {
BPFMCInstLower MCInstLowering(OutContext, *this);
OpenPOWER on IntegriCloud