[LLVMdev] LLVM C++ API memory management
Gregory Petrosyan
gregory.petrosyan at gmail.com
Mon Nov 10 06:11:59 PST 2008
While reading LLVM API docs, I have noticed a lot of plain "new"/"delete"
statements, and lots of bare pointers ("Value* = foo.getSomeValue()" etc.).
How exactly LLVM manages it's own memory? Who is responsible for
allocating/deallocating things? Why smart pointers are not used?
Thanks in advance. I hope I haven't missed some basic chapter about this
in tutorial :-)
--
Regards, Gregory.
More information about the llvm-dev
mailing list