]> granicus.if.org Git - clang/commitdiff
[C++11] Remove use of LLVM_HAS_RVALUE_REFERENCES from Clang. This macro
authorChandler Carruth <chandlerc@gmail.com>
Sat, 1 Mar 2014 09:40:34 +0000 (09:40 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 1 Mar 2014 09:40:34 +0000 (09:40 +0000)
is now always 1, as we're requiring C++11 now!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202584 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/PartialDiagnostic.h

index dd29926fce73f17d440b30ae1f1c1445c598d405..9be733ae0932731fa0d360c97fad3978d3e268fe 100644 (file)
@@ -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();