summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-13 00:39:33 +0000
committerChris Lattner <sabre@nondot.org>2001-12-13 00:39:33 +0000
commit9df24be93bffe8d07bcb14fa50393a46f56ab7c4 (patch)
tree713f2a76409d8bb05ac76be59a4f362a7b33e718 /include
parent682ea21397436e49eabbe13432e527869f07b0e0 (diff)
downloadllvm-9df24be93bffe8d07bcb14fa50393a46f56ab7c4.tar.gz
llvm-9df24be93bffe8d07bcb14fa50393a46f56ab7c4.tar.bz2
llvm-9df24be93bffe8d07bcb14fa50393a46f56ab7c4.tar.xz
Subclasses can change the opcode of an instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instruction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h
index 78c8750090..a7407ab3c8 100644
--- a/include/llvm/Instruction.h
+++ b/include/llvm/Instruction.h
@@ -18,12 +18,12 @@ class MachineCodeForVMInstr;
class Instruction : public User {
BasicBlock *Parent;
- unsigned iType; // InstructionType
MachineCodeForVMInstr* machineInstrVec;
friend class ValueHolder<Instruction,BasicBlock,Method>;
inline void setParent(BasicBlock *P) { Parent = P; }
-
+protected:
+ unsigned iType; // InstructionType
public:
Instruction(const Type *Ty, unsigned iType, const string &Name = "");
virtual ~Instruction(); // Virtual dtor == good.