forked from OSchip/llvm-project
Subclasses can change the opcode of an instruction
llvm-svn: 1440
This commit is contained in:
parent
e6a24c2f4d
commit
e0c16866c6
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue