From e0c16866c6649ae66a47dc51364b674b4edd730d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 13 Dec 2001 00:39:33 +0000 Subject: [PATCH] Subclasses can change the opcode of an instruction llvm-svn: 1440 --- llvm/include/llvm/Instruction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Instruction.h b/llvm/include/llvm/Instruction.h index 78c875009060..a7407ab3c82f 100644 --- a/llvm/include/llvm/Instruction.h +++ b/llvm/include/llvm/Instruction.h @@ -18,12 +18,12 @@ class MachineCodeForVMInstr; class Instruction : public User { BasicBlock *Parent; - unsigned iType; // InstructionType MachineCodeForVMInstr* machineInstrVec; friend class ValueHolder; 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.