mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
It is possible that subprgoram definition is only encoding return value directly, instsad of an DIArray of all argument types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65643 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a05764c4fb
commit
9ac08d6a67
@ -1888,8 +1888,12 @@ private:
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user