r202584 - [C++11] Remove use of LLVM_HAS_RVALUE_REFERENCES from Clang. This macro

Chandler Carruth chandlerc at gmail.com
Sat Mar 1 01:40:34 PST 2014


Author: chandlerc
Date: Sat Mar  1 03:40:34 2014
New Revision: 202584

URL: http://llvm.org/viewvc/llvm-project?rev=202584&view=rev
Log:
[C++11] Remove use of LLVM_HAS_RVALUE_REFERENCES from Clang. This macro
is now always 1, as we're requiring C++11 now!

Modified:
    cfe/trunk/include/clang/Basic/PartialDiagnostic.h

Modified: cfe/trunk/include/clang/Basic/PartialDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/PartialDiagnostic.h?rev=202584&r1=202583&r2=202584&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/PartialDiagnostic.h (original)
+++ cfe/trunk/include/clang/Basic/PartialDiagnostic.h Sat Mar  1 03:40:34 2014
@@ -201,13 +201,11 @@ public:
     }
   }
 
-#if LLVM_HAS_RVALUE_REFERENCES
   PartialDiagnostic(PartialDiagnostic &&Other)
     : DiagID(Other.DiagID), DiagStorage(Other.DiagStorage),
       Allocator(Other.Allocator) {
     Other.DiagStorage = 0;
   }
-#endif
 
   PartialDiagnostic(const PartialDiagnostic &Other, Storage *DiagStorage)
     : DiagID(Other.DiagID), DiagStorage(DiagStorage),
@@ -251,7 +249,6 @@ public:
     return *this;
   }
 
-#if LLVM_HAS_RVALUE_REFERENCES
   PartialDiagnostic &operator=(PartialDiagnostic &&Other) {
     freeStorage();
 
@@ -262,7 +259,6 @@ public:
     Other.DiagStorage = 0;
     return *this;
   }
-#endif
 
   ~PartialDiagnostic() {
     freeStorage();





More information about the cfe-commits mailing list