Commit 9164d207 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix optimize build

[r22129]
parent 4b01bfe0
...@@ -511,7 +511,6 @@ void set_irg_block_visited(ir_graph *irg, unsigned long i); ...@@ -511,7 +511,6 @@ void set_irg_block_visited(ir_graph *irg, unsigned long i);
* block_visited flags. If NDEBUG is not defined, then the compiler will abort * block_visited flags. If NDEBUG is not defined, then the compiler will abort
* if 2 parties try to use the flags. * if 2 parties try to use the flags.
*/ */
#ifndef NDEBUG
enum ir_resources_enum_t { enum ir_resources_enum_t {
IR_RESOURCE_BLOCK_VISITED = 1 << 0, IR_RESOURCE_BLOCK_VISITED = 1 << 0,
IR_RESOURCE_BLOCK_MARK = 1 << 1, IR_RESOURCE_BLOCK_MARK = 1 << 1,
...@@ -521,6 +520,7 @@ enum ir_resources_enum_t { ...@@ -521,6 +520,7 @@ enum ir_resources_enum_t {
}; };
typedef unsigned ir_resources_t; typedef unsigned ir_resources_t;
#ifndef NDEBUG
void ir_reserve_resources(ir_graph *irg, ir_resources_t resources); void ir_reserve_resources(ir_graph *irg, ir_resources_t resources);
void ir_free_resources(ir_graph *irg, ir_resources_t resources); void ir_free_resources(ir_graph *irg, ir_resources_t resources);
ir_resources_t ir_resources_reserved(const ir_graph *irg); ir_resources_t ir_resources_reserved(const ir_graph *irg);
......
...@@ -1387,10 +1387,7 @@ unsigned get_type_size_bytes(const ir_type *tp); ...@@ -1387,10 +1387,7 @@ unsigned get_type_size_bytes(const ir_type *tp);
*/ */
void set_type_size_bytes(ir_type *tp, unsigned size); void set_type_size_bytes(ir_type *tp, unsigned size);
/** Returns the alignment of a type in bytes. /** Returns the alignment of a type in bytes. */
*
* Returns -1 if the alignment is NOT
* a byte size, i.e. not dividable by 8. Calls get_type_alignment_bits(). */
unsigned get_type_alignment_bytes(ir_type *tp); unsigned get_type_alignment_bytes(ir_type *tp);
/** Returns the alignment of a type in bits. /** Returns the alignment of a type in bits.
......
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