Chandler Carruth
5286042938
Switch LLVM_USE_RVALUE_REFERENCES to LLVM_HAS_RVALUE_REFERENCES.
...
Rationale:
1) This was the name in the comment block. ;]
2) It matches Clang's __has_feature naming convention.
3) It matches other compiler-feature-test conventions.
Sorry for the noise. =]
I've also switch the comment block to use a \brief tag and not duplicate
the name.
llvm-svn: 168996
2012-11-30 11:45:22 +00:00
Axel Naumann
e7f1c18fe7
Reference IntrusiveRefCntPtr in doxygen doc of RefCountedBase to get a link to the pointer class documentation.
...
llvm-svn: 161112
2012-08-01 14:53:13 +00:00
Benjamin Kramer
2f57459340
IntrusiveRefCntPtr: Simplify operator= as suggested by Richard Smith.
...
This way the constructors do all the hard work. No intended functionality change.
llvm-svn: 157773
2012-05-31 22:25:25 +00:00
Benjamin Kramer
5144cce317
IntrusiveRefCntPtr: Use the same pattern as the other operator= overloads when using rvalue refs.
...
llvm-svn: 157546
2012-05-27 20:46:04 +00:00
Benjamin Kramer
c529ae7728
Move-enable IntrusiveRefCntPtr.
...
These tend to be copied around a lot, moving it instead saves a ton of memory
accesses.
llvm-svn: 157535
2012-05-27 16:22:08 +00:00
Manuel Klimek
bd5c3cbb68
RefCountedBaseVPTR needs the IntrusiveRefCntPtrInfo as friend,
...
now that this handles the release / retain calls.
Adds a regression test for that bug (which is a compile-time
regression) and for the last two changes to the IntrusiveRefCntPtr,
especially tests for the memory leak due to copy construction of the
ref-counted object and ensuring that the traits are used for release /
retain calls.
llvm-svn: 149411
2012-01-31 19:58:34 +00:00
Ted Kremenek
add0641097
Relax constructor for IntrusiveRefCntPtr to not be explicit.
...
llvm-svn: 149309
2012-01-31 00:57:08 +00:00
Ted Kremenek
0022d6619e
Use traits for IntrusiveRefCntPtr to determine how to increment/decrement a reference count.
...
llvm-svn: 149308
2012-01-31 00:57:04 +00:00
David Blaikie
576aba04f1
Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch
...
llvm-svn: 146960
2011-12-20 02:50:00 +00:00
Michael J. Spencer
d85f1f84f3
Support/FileSystem: Implement recursive_directory_iterator and make
...
directory_iterator preserve InputIterator semantics on copy.
llvm-svn: 146200
2011-12-08 22:50:09 +00:00
Ted Kremenek
5b61764405
Fix bug in RefCountedBase/RefCountedBaseVPTR where the reference count was accidentally copied as part of the copy constructor. This could result in objects getting leaked because there reference count was too high.
...
llvm-svn: 144931
2011-11-17 23:02:14 +00:00
Peter Collingbourne
44b69879c2
IntrusiveRefCntPtr: in RefCountedBase and RefCountedBaseVPTR, make
...
ref_cnt mutable and Retain/Release const to enable reference counted
pointers to const objects
llvm-svn: 128804
2011-04-04 00:57:03 +00:00
Ted Kremenek
a686187713
Relax access control on 'Release' method of RefCountedBase.
...
llvm-svn: 128054
2011-03-22 01:15:07 +00:00
Ted Kremenek
58a4560569
Allow a client to clear an IntrustiveRefCntPtr (deliberately leaking the referenced object).
...
llvm-svn: 128007
2011-03-21 18:37:59 +00:00
Argyrios Kyrtzidis
f906dcc618
If a class inherits from RefCountedBaseVPTR allow all its subclasses to be used with IntrusiveRefCntPtr.
...
llvm-svn: 127966
2011-03-20 06:14:56 +00:00
Misha Brukman
380e3db1b4
Fixed lint errors:
...
* Alphabetized #includes
* Removed trailing whitespace
* Wrapped or shortened lines over 80 chars
llvm-svn: 65181
2009-02-20 22:20:18 +00:00
Chris Lattner
01e31663c8
improvements for IntrusiveRefCntPtr, patch by Mikhail Glushenkov
...
llvm-svn: 49538
2008-04-11 16:42:06 +00:00
Anton Korobeynikov
261bddcbeb
Add first proof-of-concept universal compiler driver framework based
...
on ideas mentioned in PR686.
Written by Mikhail Glushenkov and contributed by Codedgers, Inc.
Old llvmc will be removed soon after new one will have all its properties.
llvm-svn: 48699
2008-03-23 08:57:20 +00:00
Anton Korobeynikov
ba0d97969e
Update per review. Patch by Mikhail Glushenkov!
...
llvm-svn: 47628
2008-02-26 21:44:24 +00:00
Anton Korobeynikov
fd4b209731
Add smart refcounting pointer class to ADT back (known before as IntrusiveSPtr.h).
...
llvm-svn: 47482
2008-02-22 17:26:05 +00:00