mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 22:53:08 +00:00
Assign argument type to appropriate DIE.
llvm-svn: 62412
This commit is contained in:
parent
24e250ee74
commit
2fc394ddfd
@ -1775,7 +1775,7 @@ private:
|
||||
for (unsigned i = 1, N = Elements.getNumElements(); i < N; ++i) {
|
||||
DIE *Arg = new DIE(DW_TAG_formal_parameter);
|
||||
DIDescriptor Ty = Elements.getElement(i);
|
||||
AddType(DW_Unit, &Buffer, DIType(Ty.getGV()));
|
||||
AddType(DW_Unit, Arg, DIType(Ty.getGV()));
|
||||
Buffer.AddChild(Arg);
|
||||
}
|
||||
}
|
||||
@ -1921,7 +1921,7 @@ private:
|
||||
// Add arguments.
|
||||
for (unsigned i = 1, N = Args.getNumElements(); i < N; ++i) {
|
||||
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); // ???
|
||||
Method->AddChild(Arg);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user