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
4f25f9ca
Commit
4f25f9ca
authored
Dec 05, 2012
by
Christoph Mallon
Browse files
valueset: Remove the unused link field.
parent
ffccd4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ir/valueset.c
View file @
4f25f9ca
...
...
@@ -147,20 +147,6 @@ void *ir_valueset_lookup(const ir_valueset_t *valueset, const ir_node *value)
return
NULL
;
}
void
ir_valueset_set_link
(
const
ir_valueset_t
*
valueset
,
const
ir_node
*
value
,
void
*
link
)
{
ir_valueset_entry_t
*
entry
=
ir_valueset_find_
(
valueset
,
value
);
assert
(
entry
);
entry
->
link
=
link
;
}
void
*
ir_valueset_get_link
(
const
ir_valueset_t
*
valueset
,
const
ir_node
*
value
)
{
ir_valueset_entry_t
*
entry
=
ir_valueset_find_
(
valueset
,
value
);
assert
(
entry
);
return
entry
->
link
;
}
void
ir_valueset_iterator_init
(
ir_valueset_iterator_t
*
iterator
,
const
ir_valueset_t
*
valueset
)
{
...
...
ir/ir/valueset.h
View file @
4f25f9ca
...
...
@@ -32,7 +32,6 @@
typedef
struct
ir_valueset_entry_t
{
ir_node
*
value
;
/**< the represented value */
ir_node
*
expr
;
/**< the leader expression for the value in the current set */
void
*
link
;
/**< additional attached information */
list_head
list
;
/**< link field for the list iterator */
}
ir_valueset_entry_t
;
...
...
@@ -108,24 +107,6 @@ static inline void ir_valueset_del(ir_valueset_t *valueset) {
*/
int
ir_valueset_insert
(
ir_valueset_t
*
valueset
,
ir_node
*
value
,
ir_node
*
expr
);
/**
* Sets link of the element associated with specified value.
*
* @param valueset Pointer to the value set.
* @param value Value of the element.
* @param link Link to be set in element.
*/
void
ir_valueset_set_link
(
const
ir_valueset_t
*
valueset
,
const
ir_node
*
value
,
void
*
link
);
/**
* Get the link of the element associated with specified value.
*
* @param valueset Pointer to the value set.
* @param value Value of the element.
* @returns Link of the element associated to the value.
*/
void
*
ir_valueset_get_link
(
const
ir_valueset_t
*
valueset
,
const
ir_node
*
value
);
/**
* Inserts a (value, expression) pair into a valueset if the value is not already
* known, else replace the expression for the given value.
...
...
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