[llvm-commits] [llvm-gcc-4.2] r60003 - /llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Dale Johannesen
dalej at apple.com
Mon Nov 24 18:15:57 PST 2008
Author: johannes
Date: Mon Nov 24 20:15:57 2008
New Revision: 60003
URL: http://llvm.org/viewvc/llvm-project?rev=60003&view=rev
Log:
Get rid of that annoying leading _ on ObjC
constructed function names.
Modified:
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
Modified: llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/objc/objc-act.c?rev=60003&r1=60002&r2=60003&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Mon Nov 24 20:15:57 2008
@@ -18296,6 +18296,11 @@
get_arg_type_list (METHOD_SEL_NAME (method), method, METHOD_DEF, 0));
/* APPLE LOCAL radar 5839812 - location for synthesized methods */
objc_start_function (method_id, meth_type, NULL_TREE, parmlist, method);
+/* LLVM LOCAL begin prevent llvm from adding leading _ */
+#ifdef ENABLE_LLVM
+ set_user_assembler_name(current_function_decl, buf);
+#endif
+/* LLVM LOCAL end prevent llvm from adding leading _ */
/* Set self_decl from the first argument. */
self_decl = DECL_ARGUMENTS (current_function_decl);
More information about the llvm-commits
mailing list