Add upstream patch for c++11

This commit is contained in:
Orion Poplawski 2015-02-16 10:20:52 -07:00
parent abd386cc33
commit 173294e694
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h 2014/09/23 05:23:29 218294
+++ llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h 2014/09/23 06:06:43 218295
@@ -197,6 +197,9 @@
private:
void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
+
+ template <typename X>
+ friend class IntrusiveRefCntPtr;
};
template<class T, class U>

View File

@ -55,6 +55,8 @@ Source11: llvm-Config-llvm-config.h
# patches
Patch1: llvm-3.5.0-build-fix.patch
Patch2: 0001-data-install-preserve-timestamps.patch
# Upstream patch for gcc 5/c++11
Patch3: llvm-IntrusiveRefCntPtr.patch
# the next two are various attempts to get clang to actually work on arm
# by forcing a hard-float ABI. They don't apply anymore as of 3.5.0,
@ -320,6 +322,7 @@ mv lldb-*/ tools/lldb
%patch1 -p1
%patch2 -p1
%patch3 -p2
%if %{with clang}
#patch20 -p1
#patch22 -p1