commit | adf0c3d82dbff1480c63f1ebe68c7c1e6bb5828c | [log] [tgz] |
---|---|---|
author | Jordan Rose <jordan_rose@apple.com> | Fri Nov 30 00:38:53 2012 +0000 |
committer | Jordan Rose <jordan_rose@apple.com> | Fri Nov 30 00:38:53 2012 +0000 |
tree | a10f4de7a0982b7ffdabdc2cd57707bb31797843 | |
parent | 1c83093cd5f4f6d33e732c817bb5afd033531beb [diff] |
Add a new C++11 compatibility macro, LLVM_LVALUE_FUNCTION. This expands to '&', and is intended to be used when an /optional/ rvalue override is available. Before: void foo() const { ... } After: void foo() const LLVM_LVALUE_FUNCTION { ... } void foo() && { ... } This is used to allow moving the contents of an Optional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168963 91177308-0d34-0410-b5e6-96231b3b80d8