[llvm-commits] [llvm] r149874 - in /llvm/trunk: include/llvm/Analysis/DIBuilder.h include/llvm/Analysis/DebugInfo.h lib/Analysis/DIBuilder.cpp lib/Analysis/DebugInfo.cpp lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp

Nick Lewycky nicholas at mxc.ca
Mon Feb 6 21:11:06 PST 2012


Devang Patel wrote:
> Author: dpatel
> Date: Mon Feb  6 11:49:43 2012
> New Revision: 149874
>
> URL: http://llvm.org/viewvc/llvm-project?rev=149874&view=rev
> Log:
> DebugInfo: Provide a new hook to encode relationship between a property and an ivar.

> Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=149874&r1=149873&r2=149874&view=diff
> ==============================================================================
> --- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
> +++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Mon Feb  6 11:49:43 2012
> @@ -851,6 +851,12 @@
>           if (PropertyAttributes)
>             addUInt(ElemDie, dwarf::DW_AT_APPLE_property_attribute, 0,
>                    PropertyAttributes);
> +
> +	DIEEntry *Entry = getDIEEntry(Element);
> +	if (!Entry) {
> +	  Entry = createDIEEntry(ElemDie);
> +	  insertDIEEntry(Element, Entry);
> +	}
>         } else

Tab!

Nick



More information about the llvm-commits mailing list