* use paramanager.push_copyout_param() instead of duplicated/hardcoded logic

to determine whether a parameter will be wrapped via an array or not in
    tprocdef.jvmmangledbasename()

git-svn-id: branches/jvmbackend@18689 -
This commit is contained in:
Jonas Maebe 2011-08-20 08:24:50 +00:00
parent 8fcc88d763
commit b526505bbf

View File

@ -4661,10 +4661,7 @@ implementation
does achieve regular call-by-reference semantics though;
formaldefs always have to be passed like that because their
contents can be replaced }
if ((vs.vardef.typ=formaldef) and
(vs.varspez<>vs_const)) or
((vs.varspez in [vs_var,vs_out,vs_constref]) and
not jvmimplicitpointertype(vs.vardef)) then
if paramanager.push_copyout_param(vs.varspez,vs.vardef,proccalloption) then
tmpresult:=tmpresult+'[';
{ Add the parameter type. }
if not jvmaddencodedtype(vs.vardef,false,tmpresult,signature,founderror) then