Browse Source

* fixed writing non-default linkage and visibility of llvm alias declarations

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

+ 2 - 2
compiler/llvm/agllvm.pas

@@ -938,7 +938,7 @@ implementation
               if taillvmalias(hp).linkage<>lll_default then
               if taillvmalias(hp).linkage<>lll_default then
                 begin
                 begin
                   str(taillvmalias(hp).linkage, s);
                   str(taillvmalias(hp).linkage, s);
-                  asmwrite(copy(s, length('lll_'), 255));
+                  asmwrite(copy(s, length('lll_')+1, 255));
                   asmwrite(' ');
                   asmwrite(' ');
                 end
                 end
               else
               else
@@ -946,7 +946,7 @@ implementation
               if taillvmalias(hp).vis<>llv_default then
               if taillvmalias(hp).vis<>llv_default then
                 begin
                 begin
                   str(taillvmalias(hp).vis, s);
                   str(taillvmalias(hp).vis, s);
-                  asmwrite(copy(s, length('llv_'), 255));
+                  asmwrite(copy(s, length('llv_')+1, 255));
                   asmwrite(' ');
                   asmwrite(' ');
                 end;
                 end;
               asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias));
               asmwrite(llvmencodeproctype(tabstractprocdef(taillvmalias(hp).def), '', lpd_alias));