Browse Source

* mark tasmsymbols as declared in the taillvmdecl constructor so that we
don't have to do this everywhere such a declaration is generated

git-svn-id: branches/hlcgllvm@28202 -

Jonas Maebe 11 years ago
parent
commit
8ca4c80785
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/llvm/aasmllvm.pas

+ 1 - 1
compiler/llvm/aasmllvm.pas

@@ -184,6 +184,7 @@ uses
         def:=_def;
         initdata:=_initdata;
         sec:=_sec;
+        _namesym.declared:=true;
       end;
 
     destructor taillvmdecl.destroy;
@@ -226,7 +227,6 @@ uses
             def:=tpointerdef(def).pointeddef;
           end;
         current_asmdata.AsmLists[al_imports].concat(taillvmdecl.create(ref.symbol,def,nil,sec_none));
-        ref.symbol.declared:=true;
       end;