remove obsolete comment
[libfirm] / ir / ir / irflag_t.h
index d0819bd..a963f9e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
 /**
  * @file
  * @brief    Flags to control optimizations, inline implementation.
- * @author   Michael Beck
- * @version  $Id$
+ * @author   Michael Beck, Sebastian Hack
  */
 #ifndef FIRM_IR_IRFLAG_T_H
 #define FIRM_IR_IRFLAG_T_H
 
-#include "firm_config.h"
-
 #include "irflag.h"
 
 /**
@@ -63,35 +60,27 @@ typedef enum {
 extern optimization_state_t libFIRM_opt, libFIRM_running, libFIRM_verb;
 extern firm_verification_t opt_do_node_verification;
 
-extern int firm_verbosity_level;
-
 /** initialises the flags */
 void firm_init_flags(void);
 
 /* generate the getter functions for external access */
 #define E_FLAG(name, value, def)                    \
-static INLINE int _get_opt_##name(void) {           \
+static inline int get_opt_##name##_(void) {         \
   return libFIRM_opt & irf_##name;                  \
-}                                                   \
-static INLINE int get_opt_##name##_verbose(void) {  \
-  return libFIRM_verb & irf_##name;                 \
 }
 
 /* generate the getter functions for internal access */
 #define I_FLAG(name, value, def)                   \
-static INLINE int get_opt_##name(void) {           \
+static inline int get_opt_##name(void) {           \
   return libFIRM_opt & irf_##name;                 \
-}                                                  \
-static INLINE int get_opt_##name##_verbose(void) { \
-  return libFIRM_verb & irf_##name;                \
 }
 
 /* generate getter and setter functions for running flags */
 #define R_FLAG(name, value)                        \
-static INLINE int is_##name##_running(void) {      \
+static inline int is_##name##_running(void) {      \
   return libFIRM_running & ir_rf_##name;           \
 }                                                  \
-static INLINE void set_##name##_running(int flag) {\
+static inline void set_##name##_running(int flag) {\
   if (flag) libFIRM_running |= ir_rf_##name;       \
   else      libFIRM_running &= ~ir_rf_##name;      \
 }
@@ -102,26 +91,18 @@ static INLINE void set_##name##_running(int flag) {\
 #undef E_FLAG
 #undef R_FLAG
 
-static INLINE int _get_firm_verbosity (void) {
-       return firm_verbosity_level;
+static inline int get_optimize_(void)
+{
+       return get_opt_optimize();
 }
 
-static INLINE int _get_optimize (void) {
-  return get_opt_optimize();
+static inline firm_verification_t get_node_verification_mode(void)
+{
+       return opt_do_node_verification;
 }
 
-static INLINE firm_verification_t
-get_node_verification_mode(void) {
-  return opt_do_node_verification;
-}
-
-#define get_optimize()                           _get_optimize()
-#define get_opt_cse()                            _get_opt_cse()
-#define get_firm_verbosity()                     _get_firm_verbosity()
-#define get_opt_dyn_meth_dispatch()              _get_opt_dyn_meth_dispatch()
-#define get_opt_optimize_class_casts()           _get_opt_optimize_class_casts()
-#define get_opt_suppress_downcast_optimization() _get_opt_suppress_downcast_optimization()
-
-extern void firm_init_flags(void);
+#define get_optimize()                           get_optimize_()
+#define get_opt_cse()                            get_opt_cse_()
+#define get_opt_suppress_downcast_optimization() get_opt_suppress_downcast_optimization_()
 
 #endif