[LLVMdev] TableGen Object Ownership
David Greene
dag at cray.com
Tue May 12 09:21:57 PDT 2009
I'm adding some new operators to TableGen and I've run into a memory ownership
issue.
We have all of these Inits and RecTys flying around but I don't see any scheme
to assign ownership. It looks like we're leaking memory all over.
This is getting worse as I'm adding operators because I need to create new
objects on-the-fly and/or return operands of operators as the result of
the folding of the operation.
Is there an ownership scheme or should we consider smart pointers or a similar
mechanism?
-Dave
More information about the llvm-dev
mailing list