summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2006-02-14 18:32:31 +0000
committerflorian <florian@3ad0048d-3df7-0310-abae-a5850022a9f2>2006-02-14 18:32:31 +0000
commit290dcb553cf7c2e821f7410900034ee6365be0a1 (patch)
treeb95eeacca1d8be81489cb5283139ad6f099598e2
parent5ea722b13adfcf07e7e7f26ad785e6d14c6ef7b6 (diff)
downloadfpc-290dcb553cf7c2e821f7410900034ee6365be0a1.tar.gz
+ allow symbols with defined size
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk/compiler@2573 3ad0048d-3df7-0310-abae-a5850022a9f2
-rw-r--r--aasmtai.pas15
1 files changed, 15 insertions, 0 deletions
diff --git a/aasmtai.pas b/aasmtai.pas
index 52541055d5..803847770c 100644
--- a/aasmtai.pas
+++ b/aasmtai.pas
@@ -382,6 +382,7 @@ interface
constructor Create_uleb128bit(_value : qword);
constructor Create_aint(_value : aint);
constructor Create_sym(_sym:tasmsymbol);
+ constructor Create_type_sym(_typ:taiconst_type;_sym:tasmsymbol);
constructor Create_sym_offset(_sym:tasmsymbol;ofs:aint);
constructor Create_rel_sym(_typ:taiconst_type;_sym,_endsym:tasmsymbol);
constructor Create_rva_sym(_sym:tasmsymbol);
@@ -1219,6 +1220,20 @@ implementation
end;
+ constructor tai_const.Create_type_sym(_typ:taiconst_type;_sym:tasmsymbol);
+ begin
+ inherited Create;
+ typ:=ait_const;
+ consttype:=_typ;
+ sym:=_sym;
+ endsym:=nil;
+ value:=0;
+ { update sym info }
+ if assigned(sym) then
+ sym.increfs;
+ end;
+
+
constructor tai_const.Create_sym(_sym:tasmsymbol);
begin
inherited Create;