From 0672ebbe2a455152b6eaa2fc35327d4a8f738861 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Wed, 21 Nov 2012 13:57:05 +0200 Subject: new file: sys-devel/llvm/files/cl-patches/0001-r600-Add-some-intrinsic-definitions.patch new file: sys-devel/llvm/files/cl-patches/0002-r600-Add-get_global_size-and-get_local_size-intrinsi.patch new file: sys-devel/llvm/files/llvm-2.6-commandguide-nops.patch new file: sys-devel/llvm/files/llvm-2.7-nodoctargz.patch new file: sys-devel/llvm/files/llvm-2.8-alignof.patch new file: sys-devel/llvm/files/llvm-2.8-darwin8.patch new file: sys-devel/llvm/files/llvm-2.9-Operator.h-c++0x.patch new file: sys-devel/llvm/files/llvm-2.9-nodoctargz.patch new file: sys-devel/llvm/files/llvm-3.0-PPCCompilationCallbackC_static.patch new file: sys-devel/llvm/files/llvm-3.0-PPC_macro.patch new file: sys-devel/llvm/files/llvm-3.0-gold_LTO_link.patch new file: sys-devel/llvm/files/llvm-3.0-ocaml_install.patch new file: sys-devel/llvm/files/llvm-3.0-set_soname.patch new file: sys-devel/llvm/files/llvm-3.1-fix_debug_line_info.patch new file: sys-devel/llvm/files/llvm-3.1-ivybridge_support.patch new file: sys-devel/llvm/files/llvm-3.2-nodoctargz.patch new file: sys-devel/llvm/llvm-9999.ebuild --- sys-devel/llvm/files/llvm-2.8-alignof.patch | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 sys-devel/llvm/files/llvm-2.8-alignof.patch (limited to 'sys-devel/llvm/files/llvm-2.8-alignof.patch') diff --git a/sys-devel/llvm/files/llvm-2.8-alignof.patch b/sys-devel/llvm/files/llvm-2.8-alignof.patch new file mode 100644 index 0000000..ae7f314 --- /dev/null +++ b/sys-devel/llvm/files/llvm-2.8-alignof.patch @@ -0,0 +1,59 @@ +Index: include/llvm/ADT/StringMap.h +=================================================================== +--- include/llvm/ADT/StringMap.h (révision 117773) ++++ include/llvm/ADT/StringMap.h (révision 117774) +@@ -167,7 +167,7 @@ + + unsigned AllocSize = static_cast(sizeof(StringMapEntry))+ + KeyLength+1; +- unsigned Alignment = alignof(); ++ unsigned Alignment = alignOf(); + + StringMapEntry *NewItem = + static_cast(Allocator.Allocate(AllocSize,Alignment)); +Index: include/llvm/Support/AlignOf.h +=================================================================== +--- include/llvm/Support/AlignOf.h (révision 117773) ++++ include/llvm/Support/AlignOf.h (révision 117774) +@@ -49,12 +49,12 @@ + + }; + +-/// alignof - A templated function that returns the mininum alignment of ++/// alignOf - A templated function that returns the mininum alignment of + /// of a type. This provides no extra functionality beyond the AlignOf + /// class besides some cosmetic cleanliness. Example usage: +-/// alignof() returns the alignment of an int. ++/// alignOf() returns the alignment of an int. + template +-static inline unsigned alignof() { return AlignOf::Alignment; } ++static inline unsigned alignOf() { return AlignOf::Alignment; } + + } // end namespace llvm + #endif +Index: include/llvm/Support/Allocator.h +=================================================================== +--- include/llvm/Support/Allocator.h (révision 117773) ++++ include/llvm/Support/Allocator.h (révision 117774) +@@ -201,7 +201,7 @@ + char *End = Slab == Allocator.CurSlab ? Allocator.CurPtr : + (char *)Slab + Slab->Size; + for (char *Ptr = (char*)(Slab+1); Ptr < End; Ptr += sizeof(T)) { +- Ptr = Allocator.AlignPtr(Ptr, alignof()); ++ Ptr = Allocator.AlignPtr(Ptr, alignOf()); + if (Ptr + sizeof(T) <= End) + reinterpret_cast(Ptr)->~T(); + } +Index: include/llvm/CodeGen/SlotIndexes.h +=================================================================== +--- include/llvm/CodeGen/SlotIndexes.h (révision 117773) ++++ include/llvm/CodeGen/SlotIndexes.h (révision 117774) +@@ -393,7 +393,7 @@ + IndexListEntry *entry = + static_cast( + ileAllocator.Allocate(sizeof(IndexListEntry), +- alignof())); ++ alignOf())); + + new (entry) IndexListEntry(mi, index); + -- cgit v1.2.3