search for: getsomevalu

Displaying 2 results from an estimated 2 matches for "getsomevalu".

Did you mean: getsomevalue
2008 Nov 10
2
[LLVMdev] LLVM C++ API memory management
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.
2008 Nov 10
0
[LLVMdev] LLVM C++ API memory management
On Nov 10, 2008, at 6:11 AM, Gregory Petrosyan wrote: > 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? The ownership model is very simple. We have a simple structured system (e.g. module is a list of functions, function is a l...