Changes in directory llvm-poolalloc/include/dsa:
DSNode.h updated: 1.58.2.2.2.1 -> 1.58.2.2.2.2 --- Log message: assign a meta pool to all dsnodes --- Diffs of the changes: (+7 -5) DSNode.h | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) Index: llvm-poolalloc/include/dsa/DSNode.h diff -u llvm-poolalloc/include/dsa/DSNode.h:1.58.2.2.2.1 llvm-poolalloc/include/dsa/DSNode.h:1.58.2.2.2.2 --- llvm-poolalloc/include/dsa/DSNode.h:1.58.2.2.2.1 Fri Mar 9 11:27:50 2007 +++ llvm-poolalloc/include/dsa/DSNode.h Tue Mar 13 20:24:00 2007 @@ -33,10 +33,14 @@ public: std::list<CallSite> allocs; std::list<GlobalValue*> GVs; - MetaPool(CallSite& C) : MPD(0), fw(0) { + + void addCallSite(CallSite& C) { + assert(!fw); allocs.push_back(C); } - MetaPool(GlobalValue* GV) : MPD(0),fw(0) { + + void addGlobal(GlobalValue* GV) { + assert(!fw); GVs.push_back(GV); } @@ -62,7 +66,7 @@ public: MetaPoolHandle(MetaPool* P) :MP(P) {} - // MetaPoolHandle() : MP(0) {} + MetaPoolHandle() : MP(new MetaPool()) {} MetaPool* getPool() { while(MP && MP->getFW()) MP = MP->getFW(); @@ -74,7 +78,6 @@ RP = RP->getFW(); return RP; } - void set(MetaPool* P) { MP = P; } }; #endif @@ -169,7 +172,6 @@ public: MetaPool* getMP() { return MP.getPool(); } MetaPool* getMP() const { return MP.getPool(); } - void setMP(MetaPool* P) { MP.set(P); } #endif public: /// DSNode ctor - Create a node of the specified type, inserting it into the _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits