Chandler Carruth
667363b3e3
[C++11] Remove uses of LLVM_HAS_RVALUE_REFERENCES from the unittests.
...
llvm-svn: 202583
2014-03-01 09:36:06 +00:00
David Blaikie
db2c7412e4
Only include move-related Optional<T> tests when rvalue references are available.
...
llvm-svn: 175730
2013-02-21 07:58:45 +00:00
David Blaikie
1bcb538c3f
Add move ctor/assignment to Optional<T>
...
Code review feedback for r175580 by Jordan Rose.
llvm-svn: 175729
2013-02-21 07:55:39 +00:00
David Blaikie
532aff8cd0
Rename llvm::Optional<T>::Reset to 'reset' as per LLVM naming conventions.
...
Code review feedback on r175580 from Jordan Rose.
llvm-svn: 175595
2013-02-20 06:25:36 +00:00
David Blaikie
77bac3dbcc
Allow llvm::Optional to work with types without default constructors.
...
This generalizes Optional to require less from the T type by using aligned
storage for backing & placement new/deleting the T into it when necessary.
Also includes unit tests.
llvm-svn: 175580
2013-02-20 00:26:04 +00:00