[llvm-commits] [llvm-gcc-4.2] r96974 - in /llvm-gcc-4.2/trunk/gcc: objc/objc-act.c toplev.c
Devang Patel
dpatel at apple.com
Tue Feb 23 11:36:49 PST 2010
Author: dpatel
Date: Tue Feb 23 13:36:49 2010
New Revision: 96974
URL: http://llvm.org/viewvc/llvm-project?rev=96974&view=rev
Log:
Do not rely on write_symbols to disable debug info for super class added as an invisible member of derived class. write_symbols controls debug_hooks which are used to emit debug info in various formats in gcc. llvm-gcc does not use this debug_hooks interface to emit debugging information.
Test case is at llvm/test/FrontendObjC/2010-02-23-DbgInheritance.m
Modified:
llvm-gcc-4.2/trunk/gcc/objc/objc-act.c
llvm-gcc-4.2/trunk/gcc/toplev.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=96974&r1=96973&r2=96974&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/objc/objc-act.c (original)
+++ llvm-gcc-4.2/trunk/gcc/objc/objc-act.c Tue Feb 23 13:36:49 2010
@@ -3407,8 +3407,10 @@
DECL_ALIGN (base) = 1;
DECL_FIELD_CONTEXT (base) = s;
/* APPLE LOCAL begin radar 4477797 */
- if (write_symbols == DWARF2_DEBUG)
- DECL_IGNORED_P (base) = 1;
+ /* LLVM LOCAL begin */
+ /* Do not check write-symbols in llvm-gcc. */
+ DECL_IGNORED_P (base) = 1;
+ /* LLVM LOCAL end */
/* APPLE LOCAL end radar 4477797 */
#ifdef OBJCPLUS
DECL_FIELD_IS_BASE (base) = 1;
Modified: llvm-gcc-4.2/trunk/gcc/toplev.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/toplev.c?rev=96974&r1=96973&r2=96974&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/toplev.c (original)
+++ llvm-gcc-4.2/trunk/gcc/toplev.c Tue Feb 23 13:36:49 2010
@@ -1926,6 +1926,8 @@
/* LLVM LOCAL begin */
#ifdef ENABLE_LLVM
+ // write_symbols set up debug_hooks. llvm-gcc does not use this hooks
+ // to emit debug info.
write_symbols = NO_DEBUG;
#endif
/* LLVM LOCAL end */
More information about the llvm-commits
mailing list