fix optimize build
authorMatthias Braun <matze@braunis.de>
Fri, 19 Sep 2008 18:53:23 +0000 (18:53 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 19 Sep 2008 18:53:23 +0000 (18:53 +0000)
[r22129]

include/libfirm/irgraph.h
include/libfirm/typerep.h

index 8b811e0..98044cc 100644 (file)
@@ -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
  * if 2 parties try to use the flags.
  */
-#ifndef NDEBUG
 enum ir_resources_enum_t {
        IR_RESOURCE_BLOCK_VISITED = 1 << 0,
        IR_RESOURCE_BLOCK_MARK    = 1 << 1,
@@ -521,6 +520,7 @@ enum ir_resources_enum_t {
 };
 typedef unsigned ir_resources_t;
 
+#ifndef NDEBUG
 void ir_reserve_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);
index 4e43b8a..6a3289b 100644 (file)
@@ -1387,10 +1387,7 @@ unsigned get_type_size_bytes(const ir_type *tp);
  */
 void set_type_size_bytes(ir_type *tp, unsigned size);
 
-/** 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(). */
+/** Returns the alignment of a type in bytes. */
 unsigned get_type_alignment_bytes(ir_type *tp);
 
 /** Returns the alignment of a type in bits.