mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 09:49:09 +00:00
Assign argument type to appropriate DIE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62412 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e55b3a663
commit
7ab2450674
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user