projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Renamed get_Cond_defaultProj() to get_Cond_default_proj() for consistency. Added...
[libfirm]
/
ir
/
ana
/
trouts.c
diff --git
a/ir/ana/trouts.c
b/ir/ana/trouts.c
index
96e6016
..
fe1e752
100644
(file)
--- a/
ir/ana/trouts.c
+++ b/
ir/ana/trouts.c
@@
-24,9
+24,7
@@
* @date 29.10.2004
* @version $Id$
*/
* @date 29.10.2004
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include "irnode.h"
#include "trouts.h"
#include "irnode.h"
#include "trouts.h"
@@
-187,7
+185,7
@@
static ir_type **get_type_arraytype_array(const ir_type *tp) {
return res;
}
return res;
}
-
const
void set_type_arraytype_array(const ir_type *tp, ir_type **pts) {
+void set_type_arraytype_array(const ir_type *tp, ir_type **pts) {
ir_type **old = pmap_get(type_arraytype_map, tp);
if (old != pts)
pmap_insert(type_arraytype_map, tp, (void *)pts);
ir_type **old = pmap_get(type_arraytype_map, tp);
if (old != pts)
pmap_insert(type_arraytype_map, tp, (void *)pts);
@@
-548,10
+546,10
@@
static void chain_accesses(ir_node *n, void *env) {
ir_node *addr;
(void) env;
ir_node *addr;
(void) env;
- if (
get_irn_op(n) == op_Alloc
) {
+ if (
is_Alloc(n)
) {
add_type_alloc(get_Alloc_type(n), n);
return;
add_type_alloc(get_Alloc_type(n), n);
return;
- } else if (
get_irn_op(n) == op_Cast
) {
+ } else if (
is_Cast(n)
) {
add_type_cast(get_Cast_type(n), n);
return;
} else if (is_Sel(n)) {
add_type_cast(get_Cast_type(n), n);
return;
} else if (is_Sel(n)) {
@@
-562,7
+560,7
@@
static void chain_accesses(ir_node *n, void *env) {
return;
} else if (is_memop(n)) {
addr = get_memop_ptr(n);
return;
} else if (is_memop(n)) {
addr = get_memop_ptr(n);
- } else if (
get_irn_op(n) == op_Call
) {
+ } else if (
is_Call(n)
) {
addr = get_Call_ptr(n);
if (! is_Sel(addr)) return; /* Sels before Calls mean a Load / polymorphic Call. */
} else {
addr = get_Call_ptr(n);
if (! is_Sel(addr)) return; /* Sels before Calls mean a Load / polymorphic Call. */
} else {