瀏覽代碼

* 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 -

Jonas Maebe 14 年之前
父節點
當前提交
b526505bbf
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      compiler/symdef.pas

+ 1 - 4
compiler/symdef.pas

@@ -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