Subclasses can change the opcode of an instruction
authorChris Lattner <sabre@nondot.org>
Thu, 13 Dec 2001 00:39:33 +0000 (00:39 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 13 Dec 2001 00:39:33 +0000 (00:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1440 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Instruction.h

index 78c87500906002340b051d36b0011a22a0ad9829..a7407ab3c82f17e2153fd7d509932a314c418977 100644 (file)
@@ -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.