Commit 20cad1ee authored by Michael Beck's avatar Michael Beck
Browse files

Put definition of get_base_sc() into .c file to remove the (non-standard)...

Put definition of get_base_sc() into .c file to remove the (non-standard) inline specifier from official header.

Most users of this function are inside teh same c file, so the performance hit is small.

[r28144]
parent 8bced5f4
/*
* 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.
......
/*
* 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.
*
......
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