[llvm-commits] [llvm-gcc-4.2] r80626 - in /llvm-gcc-4.2/trunk/gcc: ChangeLog.apple llvm-debug.cpp tree.c tree.h
Bill Wendling
wendling at apple.com
Mon Aug 31 17:30:25 PDT 2009
Hi Caroline,
Could you rename the "APPLE LOCAL" markers to "LLVM LOCAL"? I just
want to make sure that they won't be deleted by me the next time I do
a sync. :-)
-bw
On Aug 31, 2009, at 2:22 PM, Caroline Tice wrote:
> Modified: llvm-gcc-4.2/trunk/gcc/tree.c
> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/tree.c?rev=80626&r1=80625&r2=80626&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm-gcc-4.2/trunk/gcc/tree.c (original)
> +++ llvm-gcc-4.2/trunk/gcc/tree.c Mon Aug 31 16:22:12 2009
> @@ -7975,4 +7975,37 @@
> }
> /* APPLE LOCAL end weak_import on property 6676828 */
>
> +/* APPLE LOCAL begin radar 6419781 */
> +bool
> +type_is_block_byref_struct (tree type)
> +{
> + bool ret_value = false;
> +
> + if (!type)
> + return false;
> +
> + if (TREE_CODE (type) == POINTER_TYPE)
> + type = TREE_TYPE (type);
> +
> + if (!type
> + || ! TYPE_NAME (type)
> + || ! (TREE_CODE (type) == RECORD_TYPE))
> + return false;
> +
> + if (TREE_CODE (TYPE_NAME (type)) == IDENTIFIER_NODE
> + && strncmp (IDENTIFIER_POINTER (TYPE_NAME (type)),
> + "__Block_byref_", 14) == 0)
> + return true;
> + else if (TREE_CODE (TYPE_NAME (type)) == TYPE_DECL
> + && DECL_NAME (TYPE_NAME (type))
> + && IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (type)))
> + && (strncmp
> + (IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (type))),
> + "__Block_byref_", 14) == 0))
> + return true;
> + else
> + return false;
> +}
> +/* APPLE LOCAL begin end 6419781 */
> +
> #include "gt-tree.h"
>
> Modified: llvm-gcc-4.2/trunk/gcc/tree.h
> URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/tree.h?rev=80626&r1=80625&r2=80626&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm-gcc-4.2/trunk/gcc/tree.h (original)
> +++ llvm-gcc-4.2/trunk/gcc/tree.h Mon Aug 31 16:22:12 2009
> @@ -4892,4 +4892,8 @@
>
> /* APPLE LOCAL end radar 6300081 */
>
> +/* APPLE LOCAL begin radar 6419781 */
> +extern bool type_is_block_byref_struct (tree);
> +/* APPLE LOCAL end radar 6419781 */
> +
> #endif /* GCC_TREE_H */
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list