From: Chris Lattner Date: Sat, 13 Oct 2001 07:18:40 +0000 (+0000) Subject: Dang, I screwed up the merge. This should be better X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=704037f0248793be829df9e185bd889ca41beaf7;p=oota-llvm.git 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 --- 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;