From cd0b3a90aa34bd42d75d8d86f74ca4972145781d Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Thu, 12 Feb 2004 01:34:03 +0000 Subject: [PATCH] Remove getOpCode(). Help doxygenify some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11338 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstr.h | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index aa0ae5cfdb3..ff05631d408 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -375,19 +375,13 @@ public: /// MachineInstr(MachineBasicBlock *MBB, int Opcode, unsigned numOps); - - // The opcode. - // + /// Accessors for opcode and associated flags. + /// const int getOpcode() const { return opCode; } - const int getOpCode() const { return opCode; } - - // Opcode flags. - // - unsigned getOpCodeFlags() const { return opCodeFlags; } + unsigned getOpCodeFlags() const { return opCodeFlags; } - // - // Access to explicit operands of the instruction - // + /// Access to explicit operands of the instruction. + /// unsigned getNumOperands() const { return operands.size() - numImplicitRefs; } const MachineOperand& getOperand(unsigned i) const { -- 2.34.1