Added new get_irn_pinned() function
[libfirm] / ir / ir / irflag.c
index b822628..1166f04 100644 (file)
@@ -66,6 +66,7 @@ optimization_state_t libFIRM_verb =
   DISABLE(OPT_PRECISE_EXC_CONTEXT)                |
   0;
 
+/** The Firm verbosity level */
 int firm_verbosity_level;
 
 /* set the flags with set_flagname, get the flag with get_flagname */
@@ -219,7 +220,7 @@ void set_firm_verbosity (int value) {
 }
 
 int  (get_firm_verbosity) (void) {
-  return __get_firm_verbosity();
+  return _get_firm_verbosity();
 }
 
 
@@ -260,6 +261,15 @@ void set_opt_tail_recursion(int value)
     libFIRM_opt &= ~OPT_TAIL_RECURSION;
 }
 
+/* Enable/Disable optimization of tail-recursion calls. */
+void set_opt_tail_recursion_verbose(int value)
+{
+  if (value)
+    libFIRM_verb |= OPT_TAIL_RECURSION;
+  else
+    libFIRM_verb &= ~OPT_TAIL_RECURSION;
+}
+
 /* Enable/Disable precise exception context. */
 void set_opt_precise_exc_context(int value)
 {