[llvm-commits] [llvm] r65643 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Bill Wendling
isanbard at gmail.com
Fri Feb 27 18:14:08 PST 2009
Should this go into Dib?
-bw
On Feb 27, 2009, at 10:05 AM, Devang Patel wrote:
> Author: dpatel
> Date: Fri Feb 27 12:05:21 2009
> New Revision: 65643
>
> URL: http://llvm.org/viewvc/llvm-project?rev=65643&view=rev
> Log:
> It is possible that subprgoram definition is only encoding return
> value directly, instsad of an DIArray of all argument types.
>
>
> Modified:
> llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
>
> Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp?rev=65643&r1=65642&r2=65643&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp (original)
> +++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfWriter.cpp Fri Feb 27
> 12:05:21 2009
> @@ -1888,8 +1888,12 @@
> DIArray Args = SPTy.getTypeArray();
>
> // Add Return Type.
> - if (!IsConstructor)
> - AddType(DW_Unit, SPDie, DIType(Args.getElement(0).getGV()));
> + if (!IsConstructor) {
> + if (Args.isNull())
> + AddType(DW_Unit, SPDie, SPTy);
> + else
> + AddType(DW_Unit, SPDie, DIType(Args.getElement(0).getGV()));
> + }
>
> if (!SP.isDefinition()) {
> AddUInt(SPDie, DW_AT_declaration, DW_FORM_flag, 1);
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list