mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
added some memory for clone function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -23,6 +23,8 @@ class Instruction : public User {
|
|||||||
friend class SymbolTableListTraits<Instruction, BasicBlock, Function,
|
friend class SymbolTableListTraits<Instruction, BasicBlock, Function,
|
||||||
ilist_traits<Instruction> >;
|
ilist_traits<Instruction> >;
|
||||||
void setParent(BasicBlock *P);
|
void setParent(BasicBlock *P);
|
||||||
|
private:
|
||||||
|
Instruction* cln; //the newest cloned instruction
|
||||||
protected:
|
protected:
|
||||||
unsigned iType; // InstructionType: The opcode of the instruction
|
unsigned iType; // InstructionType: The opcode of the instruction
|
||||||
|
|
||||||
@@ -42,7 +44,9 @@ public:
|
|||||||
/// * The instruction has no name
|
/// * The instruction has no name
|
||||||
///
|
///
|
||||||
virtual Instruction *clone() const = 0;
|
virtual Instruction *clone() const = 0;
|
||||||
|
Instruction * getClone(){return cln;}
|
||||||
|
void setClone(Instruction* _cln){cln=_cln;}
|
||||||
|
void clearClone(){cln=NULL;}
|
||||||
// Accessor methods...
|
// Accessor methods...
|
||||||
//
|
//
|
||||||
inline const BasicBlock *getParent() const { return Parent; }
|
inline const BasicBlock *getParent() const { return Parent; }
|
||||||
|
Reference in New Issue
Block a user