summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-06 00:12:48 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-06 00:12:48 +0000
commitc52df286eaf62c5b4865bdadd06f2580de937f7c (patch)
tree2570e14997d17fb5199c0d9080fb9553f80c2aff /clang/lib/CodeGen/CodeGenModule.cpp
parentc70f8ff4175ad7f57193bb174a79f9ee34cfe7fb (diff)
downloadbcm5719-llvm-c52df286eaf62c5b4865bdadd06f2580de937f7c.tar.gz
bcm5719-llvm-c52df286eaf62c5b4865bdadd06f2580de937f7c.zip
Howard Hinnant gave us changes for lldb_private::SharingPtr that gives us the ability have a single allocation contain both the class and the ref count without having to do intrusive pointer type stuff. They will intermingle correctly with other shared pointers as well. In order to take advantage of this you need to create your pointer in your class with the make_shared function:
lldb_private::SharingPtr<A> p = llvm::make_shared<A>(i, j); Currently up to five constructor arguments are supported and each must be an LValue. llvm-svn: 118317
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud