2016-10-15 16:38:46 +00:00
|
|
|
#include "mcg.h"
|
|
|
|
|
2016-10-15 21:19:44 +00:00
|
|
|
void pass_add_prologue_epilogue(void)
|
2016-10-15 16:38:46 +00:00
|
|
|
{
|
2016-10-15 21:19:44 +00:00
|
|
|
platform_calculate_offsets();
|
2016-10-15 16:38:46 +00:00
|
|
|
|
2016-10-15 21:19:44 +00:00
|
|
|
array_insert(¤t_proc->entry->hops, platform_prologue(), 0);
|
2016-10-15 16:38:46 +00:00
|
|
|
|
2016-10-15 21:19:44 +00:00
|
|
|
if (current_proc->exit)
|
|
|
|
{
|
|
|
|
current_proc->exit->hops.count = 0;
|
|
|
|
array_append(¤t_proc->exit->hops, platform_epilogue());
|
2016-10-15 16:38:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim: set sw=4 ts=4 expandtab : */
|
|
|
|
|