Browse Source

* support llvm aliases for defs other than procdef

git-svn-id: trunk@31052 -
Jonas Maebe 10 years ago
parent
commit
54dd25b448
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/llvm/agllvm.pas

+ 4 - 1
compiler/llvm/agllvm.pas

@@ -949,7 +949,10 @@ implementation
                   asmwrite(copy(s, length('llv_')+1, 255));
                   asmwrite(copy(s, length('llv_')+1, 255));
                   asmwrite(' ');
                   asmwrite(' ');
                 end;
                 end;
-              asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias));
+              if taillvmalias(hp).def.typ=procdef then
+                asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias))
+              else
+                asmwrite(llvmencodetypename(taillvmalias(hp).def));
               asmwrite('* ');
               asmwrite('* ');
               asmwriteln(LlvmAsmSymName(taillvmalias(hp).oldsym));
               asmwriteln(LlvmAsmSymName(taillvmalias(hp).oldsym));
             end;
             end;