diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-12 01:34:03 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-12 01:34:03 +0000 |
| commit | 84b1008c13561b100c8640d06784206f9627ad66 (patch) | |
| tree | ecd5cc554483054772df6a05ee88eaa545188b03 | |
| parent | e10e2b12dd81bc1993b3bf678f456afba567d6b8 (diff) | |
| download | bcm5719-llvm-84b1008c13561b100c8640d06784206f9627ad66.tar.gz bcm5719-llvm-84b1008c13561b100c8640d06784206f9627ad66.zip | |
Remove getOpCode(). Help doxygenify some comments.
llvm-svn: 11338
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstr.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index aa0ae5cfdb3..ff05631d408 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/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 { |

