Commit eed48301 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove k_ir_prog

parent bfcbe594
......@@ -56,7 +56,6 @@ typedef enum firm_kind {
k_ir_mode, /**< An IR mode. */
k_tarval, /**< A tarval. */
k_ir_loop, /**< A loop. */
k_ir_prog, /**< A program representation (irp). */
k_ir_max /**< maximum value -- illegal for firm nodes. */
} firm_kind;
......
......@@ -35,7 +35,6 @@ static ir_prog *new_incomplete_ir_prog(void)
{
ir_prog *res = XMALLOCZ(ir_prog);
res->kind = k_ir_prog;
res->graphs = NEW_ARR_F(ir_graph *, 0);
res->types = NEW_ARR_F(ir_type *, 0);
res->global_asms = NEW_ARR_F(ident *, 0);
......@@ -121,7 +120,6 @@ void free_ir_prog(void)
pmap_destroy(irp->compilerlib_entities);
irp->name = NULL;
irp->const_code_irg = NULL;
irp->kind = k_BAD;
free(irp);
irp = NULL;
}
......
......@@ -557,7 +557,6 @@ struct ir_graph {
* using exchange_types()).
*/
struct ir_prog {
firm_kind kind; /**< must be k_ir_prog */
ident *name; /**< A file name or the like. */
ir_graph *main_irg; /**< The entry point to the compiled program
or NULL if no point exists. */
......
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