Assign argument type to appropriate DIE.

llvm-svn: 62412
This commit is contained in:
Devang Patel 2009-01-17 06:57:25 +00:00
parent f76b92092e
commit bf7d432ce4
1 changed files with 2 additions and 2 deletions

View File

@ -1775,7 +1775,7 @@ private:
for (unsigned i = 1, N = Elements.getNumElements(); i < N; ++i) { for (unsigned i = 1, N = Elements.getNumElements(); i < N; ++i) {
DIE *Arg = new DIE(DW_TAG_formal_parameter); DIE *Arg = new DIE(DW_TAG_formal_parameter);
DIDescriptor Ty = Elements.getElement(i); DIDescriptor Ty = Elements.getElement(i);
AddType(DW_Unit, &Buffer, DIType(Ty.getGV())); AddType(DW_Unit, Arg, DIType(Ty.getGV()));
Buffer.AddChild(Arg); Buffer.AddChild(Arg);
} }
} }
@ -1921,7 +1921,7 @@ private:
// Add arguments. // Add arguments.
for (unsigned i = 1, N = Args.getNumElements(); i < N; ++i) { for (unsigned i = 1, N = Args.getNumElements(); i < N; ++i) {
DIE *Arg = new DIE(DW_TAG_formal_parameter); DIE *Arg = new DIE(DW_TAG_formal_parameter);
AddType(DW_Unit, Method, DIType(Args.getElement(i).getGV())); AddType(DW_Unit, Arg, DIType(Args.getElement(i).getGV()));
AddUInt(Arg, DW_AT_artificial, DW_FORM_flag, 1); // ??? AddUInt(Arg, DW_AT_artificial, DW_FORM_flag, 1); // ???
Method->AddChild(Arg); Method->AddChild(Arg);
} }