diff options
author | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-06 21:42:03 +0000 |
---|---|---|
committer | jonas <jonas@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2014-03-06 21:42:03 +0000 |
commit | 4a7291c2b227b262516676df0823b5dd08699513 (patch) | |
tree | 9a2f679a9117c6149d0c2171f1175cfd5bdcbeb2 /compiler/aasmbase.pas | |
parent | d26cf5a4c64c60e6b46e6109c973362409fa1276 (diff) | |
download | fpc-4a7291c2b227b262516676df0823b5dd08699513.tar.gz |
* reworked handling of defined/declared symbols in llvm: we now automatically
generate declarations when external symbols are referred in a taillvm
instruction
* added "declared" field to tasmsymbol for llvm to make avoid declaring a
symbol multiple times (harmless, but unnecessary)
* all kinds of declarations/definitions are now handled using the new
taillvmdecl, the old separate types have been removed
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/hlcgllvm@27010 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/aasmbase.pas')
-rw-r--r-- | compiler/aasmbase.pas | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/aasmbase.pas b/compiler/aasmbase.pas index 18ca27814e..1a22316436 100644 --- a/compiler/aasmbase.pas +++ b/compiler/aasmbase.pas @@ -158,6 +158,10 @@ interface {$endif AVR} bind : TAsmsymbind; typ : TAsmsymtype; +{$ifdef llvm} + { have we generated a declaration for this symbol? } + declared : boolean; +{$endif llvm} { Alternate symbol which can be used for 'renaming' needed for asm inlining. Also used for external and common solving during linking } altsymbol : TAsmSymbol; |