From 704037f0248793be829df9e185bd889ca41beaf7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Oct 2001 07:18:40 +0000 Subject: [PATCH] Dang, I screwed up the merge. This should be better git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@785 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/MachineInstr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index b2074726a3d..2c5a337b2cc 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/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;