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
This commit is contained in:
Chris Lattner 2001-12-13 00:39:33 +00:00
parent 682ea21397
commit 9df24be93b

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.