[llvm-commits] [126204] Do not emit debug info for fields at variable offset, for now.

dpatel at apple.com dpatel at apple.com
Mon Apr 16 11:13:49 PDT 2007


Revision: 126204
Author:   dpatel
Date:     2007-04-16 11:13:49 -0700 (Mon, 16 Apr 2007)

Log Message:
-----------
Do not emit debug info for fields at variable offset, for now.
Patch by Duncan Sands.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/llvm-debug.cpp

Modified: apple-local/branches/llvm/gcc/llvm-debug.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-debug.cpp	2007-04-16 18:12:08 UTC (rev 126203)
+++ apple-local/branches/llvm/gcc/llvm-debug.cpp	2007-04-16 18:13:49 UTC (rev 126204)
@@ -676,6 +676,10 @@
                                    NULL;
 
         if (TREE_CODE(Member) == FIELD_DECL) {
+          if (TREE_CODE(DECL_FIELD_OFFSET(Member)) != INTEGER_CST)
+            // FIXME: field with variable position, skip it for now.
+            continue;
+
           DerivedTypeDesc *MemberDesc = new DerivedTypeDesc(DW_TAG_member);
           // Field type is the declared type of the field.
           tree FieldNodeType = FieldType(Member);





More information about the llvm-commits mailing list