From: Brian Gaeke Date: Thu, 12 Feb 2004 01:34:03 +0000 (+0000) Subject: Remove getOpCode(). Help doxygenify some comments. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cd0b3a90aa34bd42d75d8d86f74ca4972145781d;p=oota-llvm.git Remove getOpCode(). Help doxygenify some comments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11338 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 {