aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 07:18:40 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 07:18:40 +0000
commit704037f0248793be829df9e185bd889ca41beaf7 (patch)
treef67f7a589aa9da50443d04e3f2f2cd798c445cca /include/llvm/CodeGen/MachineInstr.h
parent5bc20c7fe33efae1317c83003cd006a69377c926 (diff)
downloadexternal_llvm-704037f0248793be829df9e185bd889ca41beaf7.zip
external_llvm-704037f0248793be829df9e185bd889ca41beaf7.tar.gz
external_llvm-704037f0248793be829df9e185bd889ca41beaf7.tar.bz2
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
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index b207472..2c5a337 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;