aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-08-14 23:25:30 +0000
committerOwen Anderson <resistor@mac.com>2008-08-14 23:25:30 +0000
commit79e6ed9d4733ef6bfaf6e6ae71a013c8b226b7c9 (patch)
tree973503a87d27b6fd94ca9f38cc2bb1c9f2ecd23d /include/llvm/CodeGen/MachineInstr.h
parent172f0fa16b7f3dfe199e48c94ea9dafb3b1c1fbc (diff)
Move MachineInstr::getOpcode inline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index bcbcf316d0..471cebef63 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -21,6 +21,7 @@
#include "llvm/ADT/STLExtras.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/MachineMemOperand.h"
+#include "llvm/Target/TargetInstrDesc.h"
#include <list>
#include <vector>
@@ -89,7 +90,7 @@ public:
/// getOpcode - Returns the opcode of this MachineInstr.
///
- int getOpcode() const;
+ int getOpcode() const { return TID->Opcode; }
/// Access to explicit operands of the instruction.
///