nv50/ir: Add support for removing functions from a program.

This commit is contained in:
Francisco Jerez 2011-11-15 00:18:28 +01:00 committed by Christoph Bumiller
parent d32ebb8c30
commit 5e4b2a1a47
2 changed files with 3 additions and 0 deletions

View file

@ -1001,6 +1001,7 @@ public:
Type getType() const { return progType; }
inline void add(Function *fn, int& id) { allFuncs.insert(fn, id); }
inline void del(Function *fn, int& id) { allFuncs.remove(id); }
inline void add(Value *rval, int& id) { allRValues.insert(rval, id); }
bool makeFromTGSI(struct nv50_ir_prog_info *);

View file

@ -45,6 +45,8 @@ Function::Function(Program *p, const char *fnName)
Function::~Function()
{
prog->del(this, id);
if (domTree)
delete domTree;
if (bbArray)