[lldb-dev] std::shared_ptr, RTTI, and LLDB

Howard Hinnant hhinnant at apple.com
Fri Jun 11 17:44:16 PDT 2010


On Jun 11, 2010, at 12:20 PM, Chris Lattner wrote:

> 
> On Jun 10, 2010, at 6:06 PM, Greg Clayton wrote:
>> 
>> Howard, that would be great if you could trim this down for us. 
> 
> Yep, thanks for doing this Howard!
> 
>> I don't believe we need anyting fancy (no RTTI, no weak_ptr (what I am aware of), no enable_shard_from_this). If you can send me a header that we can include into our Utility folder, I will check it in ASAP and see if we switch over to using it.
> 
> It would be great to drop this into include/llvm/ADT.  For example, we already have include/llvm/ADT/OwningPtr.h which is a close relation.

Here is a much trimmed down refcounted ptr.  The trimming reduces both dependencies and features.

-Howard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SharingPtr.h
Type: application/octet-stream
Size: 4717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100611/c691afb0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SharingPtr.cpp
Type: application/octet-stream
Size: 855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100611/c691afb0/attachment-0001.obj>


More information about the lldb-dev mailing list