Commit 3767f521 authored by Michael Beck's avatar Michael Beck
Browse files

added be_set_spill_env_dbg_module() to access anonymous structure

parent 57202971
......@@ -74,6 +74,12 @@ static int cmp_spillinfo(const void *x, const void *y, size_t size) {
return ! (xx->spilled_node == yy->spilled_node);
}
DEBUG_ONLY(
void be_set_spill_env_dbg_module(spill_env_t *env, firm_dbg_module_t *dbg) {
env->dbg = dbg;
}
);
spill_env_t *be_new_spill_env(const be_chordal_env_t *chordal_env, decide_irn_t is_mem_phi, void *data) {
spill_env_t *env = xmalloc(sizeof(env[0]));
env->spill_ctxs = new_set(cmp_spillctx, 1024);
......
......@@ -8,6 +8,7 @@
#ifndef BESPILL_H_
#define BESPILL_H_
#include "firm_config.h"
#include "set.h"
#include "pset.h"
#include "irnode.h"
......@@ -37,4 +38,6 @@ void be_insert_spills_reloads(spill_env_t *senv, pset *reload_set);
*/
void be_compute_spill_offsets(be_chordal_env_t *cenv);
DEBUG_ONLY(void be_set_spill_env_dbg_module(spill_env_t *env, firm_dbg_module_t *dbg));
#endif /*BESPILL_H_*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment