diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:18:40 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 07:18:40 +0000 |
| commit | 9b69cae4d96f99c09c9f2a946ffc4b2f9c0c94cb (patch) | |
| tree | 9ad45420d3a52263db0e4a2887630bbea1391ae5 | |
| parent | 1600652b2427dfb175fa4e6f3850869a6833530d (diff) | |
| download | bcm5719-llvm-9b69cae4d96f99c09c9f2a946ffc4b2f9c0c94cb.tar.gz bcm5719-llvm-9b69cae4d96f99c09c9f2a946ffc4b2f9c0c94cb.zip | |
Dang, I screwed up the merge. This should be better
llvm-svn: 785
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineInstr.h b/llvm/include/llvm/CodeGen/MachineInstr.h index b2074726a3d..2c5a337b2cc 100644 --- a/llvm/include/llvm/CodeGen/MachineInstr.h +++ b/llvm/include/llvm/CodeGen/MachineInstr.h @@ -261,12 +261,12 @@ public: unsigned numOperands, OpCodeMask _opCodeMask = 0x0); inline ~MachineInstr () {} - const MachineOpCode getOpCode () const; + const MachineOpCode getOpCode () const { return opCode; } // // Information about explicit operands of the instruction // - unsigned int getNumOperands () const; + unsigned int getNumOperands () const { return operands.size(); } bool operandIsDefined(unsigned int i) const; |

