[llvm-commits] CVS: llvm/include/llvm/Instruction.h
Guochun Shi
gshi1 at cs.uiuc.edu
Sun Apr 6 18:59:01 PDT 2003
Changes in directory llvm/include/llvm:
Instruction.h updated: 1.37 -> 1.38
---
Log message:
added some memory for clone function
---
Diffs of the changes:
Index: llvm/include/llvm/Instruction.h
diff -u llvm/include/llvm/Instruction.h:1.37 llvm/include/llvm/Instruction.h:1.38
--- llvm/include/llvm/Instruction.h:1.37 Mon Feb 24 14:48:28 2003
+++ llvm/include/llvm/Instruction.h Sun Apr 6 18:58:44 2003
@@ -23,6 +23,8 @@
friend class SymbolTableListTraits<Instruction, BasicBlock, Function,
ilist_traits<Instruction> >;
void setParent(BasicBlock *P);
+private:
+ Instruction* cln; //the newest cloned instruction
protected:
unsigned iType; // InstructionType: The opcode of the instruction
@@ -42,7 +44,9 @@
/// * The instruction has no name
///
virtual Instruction *clone() const = 0;
-
+ Instruction * getClone(){return cln;}
+ void setClone(Instruction* _cln){cln=_cln;}
+ void clearClone(){cln=NULL;}
// Accessor methods...
//
inline const BasicBlock *getParent() const { return Parent; }
More information about the llvm-commits
mailing list