From 9df24be93bffe8d07bcb14fa50393a46f56ab7c4 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Instruction.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Instruction.h b/include/llvm/Instruction.h index 78c87500906..a7407ab3c82 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; 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. -- 2.34.1