mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
nv50/ir: Add support for removing functions from a program.
This commit is contained in:
parent
d32ebb8c30
commit
5e4b2a1a47
2 changed files with 3 additions and 0 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
|
|
@ -45,6 +45,8 @@ Function::Function(Program *p, const char *fnName)
|
|||
|
||||
Function::~Function()
|
||||
{
|
||||
prog->del(this, id);
|
||||
|
||||
if (domTree)
|
||||
delete domTree;
|
||||
if (bbArray)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue