projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f50044
)
add some comment
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 28 Feb 2008 17:28:32 +0000
(17:28 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 28 Feb 2008 17:28:32 +0000
(17:28 +0000)
[r17927]
ir/tr/entity.c
patch
|
blob
|
history
diff --git
a/ir/tr/entity.c
b/ir/tr/entity.c
index
fcc3660
..
6e1e7b3
100644
(file)
--- a/
ir/tr/entity.c
+++ b/
ir/tr/entity.c
@@
-255,6
+255,10
@@
static void free_entity_attrs(ir_entity *ent) {
}
} /* free_entity_attrs */
+/*
+ * Copies the entity if the new_owner is different from the
+ * owner of the old entity, else returns the old entity.
+ */
ir_entity *
copy_entity_own(ir_entity *old, ir_type *new_owner) {
ir_entity *newe;