On Apr 27, 2009, at 3:40 PM, Devang Patel wrote:

> Author: dpatel
> Date: Mon Apr 27 17:40:36 2009
> New Revision: 70266
>
> URL: http://llvm.org/viewvc/llvm-project?rev=70266&view=rev
> Log:
> While generating debug info ignore unnamed fields.

Does this mean that we don't generate any debug info for the members  
of anonymous structs and unions?

        - Doug

> Modified:
>    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
> URL: 
> http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=70266&r1=70265&r2=70266&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Apr 27 17:40:36 2009
> @@ -304,6 +304,10 @@
>
>     std::string FieldName = Field->getNameAsString();
>
> +    // Ignore unnamed fields.
> +    if (FieldName.empty())
> +      continue;
> +
>     // Get the location for the field.
>     SourceLocation FieldDefLoc = Field->getLocation();
>     llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit 
> (FieldDefLoc);
> @@ -414,6 +418,10 @@
>
>     std::string FieldName = Field->getNameAsString();
>
> +    // Ignore unnamed fields.
> +    if (FieldName.empty())
> +      continue;
> +
>     // Get the location for the field.
>     SourceLocation FieldDefLoc = Field->getLocation();
>     llvm::DICompileUnit FieldDefUnit = getOrCreateCompileUnit 
> (FieldDefLoc);
>
>
> _______________________________________________
> cfe-commits mailing list
> [email protected]
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to