Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4de03dcc
Commit
4de03dcc
authored
Apr 21, 2012
by
Christoph Mallon
Browse files
Make new_type() static.
parent
1ccd9ea6
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/tr/type.c
View file @
4de03dcc
...
...
@@ -64,6 +64,8 @@
#include
"array.h"
static
ir_type
*
new_type
(
tp_op
const
*
type_op
,
ir_mode
*
mode
,
type_dbg_info
*
db
);
ir_type
*
get_none_type
(
void
)
{
return
irp
->
none_type
;
...
...
@@ -118,7 +120,17 @@ void (inc_master_type_visited)(void)
_inc_master_type_visited
();
}
ir_type
*
new_type
(
const
tp_op
*
type_op
,
ir_mode
*
mode
,
type_dbg_info
*
db
)
/**
* Creates a new type representation:
*
* @param type_op the kind of this type. May not be type_id.
* @param mode the mode to be used for this type, may be NULL
* @param db debug info
*
* @return A new type of the given type. The remaining private attributes are
* not initialized. The type is in state layout_undefined.
*/
static
ir_type
*
new_type
(
tp_op
const
*
type_op
,
ir_mode
*
mode
,
type_dbg_info
*
db
)
{
ir_type
*
res
;
size_t
node_size
;
...
...
ir/tr/type_t.h
View file @
4de03dcc
...
...
@@ -186,18 +186,6 @@ struct ir_type {
last entry in this struct! Varying size! */
};
/**
* Creates a new type representation:
*
* @param type_op the kind of this type. May not be type_id.
* @param mode the mode to be used for this type, may be NULL
* @param db debug info
*
* @return A new type of the given type. The remaining private attributes are not
* initialized. The type is in state layout_undefined.
*/
ir_type
*
new_type
(
const
tp_op
*
type_op
,
ir_mode
*
mode
,
type_dbg_info
*
db
);
void
free_type_entities
(
ir_type
*
tp
);
void
free_class_entities
(
ir_type
*
clss
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment