Commit eba41476 authored by Götz Lindenmaier's avatar Götz Lindenmaier
Browse files

added get routine

[r5327]
parent 2f887e2d
...@@ -269,6 +269,10 @@ void set_opt_dyn_meth_dispatch (int value) ...@@ -269,6 +269,10 @@ void set_opt_dyn_meth_dispatch (int value)
libFIRM_opt &= ~OPT_DYN_METH_DISPATCH; libFIRM_opt &= ~OPT_DYN_METH_DISPATCH;
} }
int (get_opt_dyn_meth_dispatch)(void) {
return _get_opt_dyn_meth_dispatch();
}
/* Enable/Disable normalizations of the firm representation. */ /* Enable/Disable normalizations of the firm representation. */
void set_opt_normalize(int value) void set_opt_normalize(int value)
{ {
......
...@@ -193,6 +193,7 @@ void set_opt_inline (int value); ...@@ -193,6 +193,7 @@ void set_opt_inline (int value);
* the address of a function. * the address of a function.
*/ */
void set_opt_dyn_meth_dispatch (int value); void set_opt_dyn_meth_dispatch (int value);
int get_opt_dyn_meth_dispatch (void);
/** Enable/Disable optimization of tail-recursion calls. /** Enable/Disable optimization of tail-recursion calls.
* *
......
...@@ -222,7 +222,7 @@ static INLINE int get_opt_inline(void) ...@@ -222,7 +222,7 @@ static INLINE int get_opt_inline(void)
return libFIRM_opt & OPT_INLINE; return libFIRM_opt & OPT_INLINE;
} }
static INLINE int get_opt_dyn_meth_dispatch(void) static INLINE int _get_opt_dyn_meth_dispatch(void)
{ {
return libFIRM_opt & OPT_DYN_METH_DISPATCH; return libFIRM_opt & OPT_DYN_METH_DISPATCH;
} }
...@@ -263,7 +263,8 @@ static INLINE int get_opt_if_conversion(void) ...@@ -263,7 +263,8 @@ static INLINE int get_opt_if_conversion(void)
} }
#define get_opt_cse() _get_opt_cse() #define get_opt_cse() _get_opt_cse()
#define get_firm_verbosity() _get_firm_verbosity() #define get_firm_verbosity() _get_firm_verbosity()
#define get_opt_dyn_meth_dispatch() _get_opt_dyn_meth_dispatch()
#endif /* _IRFLAG_T_H_ */ #endif /* _IRFLAG_T_H_ */
Supports Markdown
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