Subclasses can change the opcode of an instruction

llvm-svn: 1440
This commit is contained in:
Chris Lattner 2001-12-13 00:39:33 +00:00
parent e6a24c2f4d
commit e0c16866c6
1 changed files with 2 additions and 2 deletions

View 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.