diff options
author | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-04-21 09:49:34 +0000 |
---|---|---|
committer | nickysn <nickysn@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2013-04-21 09:49:34 +0000 |
commit | 5b9324bb6850838bed929a6d35fea20764a9c2e3 (patch) | |
tree | a37da0aa27f2347c5dff818ac60e66ee655dc792 /compiler | |
parent | 2318a3d2bba1f6ef51b98b4fbc496810e04b544a (diff) | |
download | fpc-5b9324bb6850838bed929a6d35fea20764a9c2e3.tar.gz |
+ added method tabstractprocdef.is_pushleftright that exists on all platforms and returns whether parameters must be loaded left to right
git-svn-id: http://svn.freepascal.org/svn/fpc/branches/i8086@24281 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/symdef.pas | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/symdef.pas b/compiler/symdef.pas index 57b56f9353..7444778ecc 100644 --- a/compiler/symdef.pas +++ b/compiler/symdef.pas @@ -494,6 +494,7 @@ interface procedure check_mark_as_nested; procedure init_paraloc_info(side: tcallercallee); function stack_tainting_parameter(side: tcallercallee): boolean; + function is_pushleftright: boolean; private procedure count_para(p:TObject;arg:pointer); procedure insert_para(p:TObject;arg:pointer); @@ -4064,6 +4065,15 @@ implementation end; end; + function tabstractprocdef.is_pushleftright: boolean; + begin +{$if defined(i8086) or defined(i386)} + result:=proccalloption in pushleftright_pocalls; +{$else} + result:=false; +{$endif} + end; + |