mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-12-22 07:30:54 +00:00
Merge pull request #46 from ksherlock/profile_flag_exit
generate function exit cop with profiling / #pragma debug 4.
This commit is contained in:
commit
89f4257742
4
Gen.pas
4
Gen.pas
@ -5061,8 +5061,8 @@ procedure GenTree {op: icptr};
|
||||
if namePushed then
|
||||
GenCall(2);
|
||||
|
||||
{generate an exit code for the debugger's benefit}
|
||||
if debugFlag then
|
||||
{generate an exit code for the debugger/profiler's benefit}
|
||||
if debugFlag or profileFlag then
|
||||
GenNative(m_cop, immediate, 4, nil, 0);
|
||||
|
||||
{if anything needs to be removed from the stack, move the return val}
|
||||
|
Loading…
Reference in New Issue
Block a user