From: Chris Lattner Date: Thu, 13 Dec 2001 00:39:33 +0000 (+0000) Subject: Subclasses can change the opcode of an instruction X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9df24be93bffe8d07bcb14fa50393a46f56ab7c4;p=oota-llvm.git 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 --- 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.