Put definition of get_base_sc() into .c file to remove the (non-standard) inline...
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Nov 2010 23:17:02 +0000 (23:17 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 17 Nov 2010 23:17:02 +0000 (23:17 +0000)
Most users of this function are inside teh same c file, so the performance hit is small.

[r28144]

include/libfirm/irmemory.h
ir/ana/irmemory.c

index 3252144..948c040 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2010 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -76,10 +76,7 @@ typedef enum ir_storage_class_class_t {
 ENUM_BITSET(ir_storage_class_class_t)
 
 /** Get the base storage class (ignore modifier) */
-static inline ir_storage_class_class_t get_base_sc(ir_storage_class_class_t x)
-{
-       return x & ~ir_sc_modifiers;
-}
+FIRM_API ir_storage_class_class_t get_base_sc(ir_storage_class_class_t x);
 
 /**
  * A source language specific memory disambiguator function.
index d9b7a58..b0554d1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
+ * Copyright (C) 1995-2010 University of Karlsruhe.  All right reserved.
  *
  * This file is part of libFirm.
  *
@@ -91,6 +91,12 @@ void set_irp_memory_disambiguator_options(unsigned options)
        global_mem_disamgig_opt = options;
 }  /* set_irp_memory_disambiguator_options */
 
+/* Get the base storage class (ignore modifier) */
+ir_storage_class_class_t get_base_sc(ir_storage_class_class_t x)
+{
+       return x & ~ir_sc_modifiers;
+}  /* get_base_sc */
+
 /**
  * Find the base address and entity of an Sel node.
  *