projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added ifdef around irloop type
[libfirm]
/
ir
/
tr
/
type_identify.c
diff --git
a/ir/tr/type_identify.c
b/ir/tr/type_identify.c
index
bdd1127
..
3b9f053
100644
(file)
--- a/
ir/tr/type_identify.c
+++ b/
ir/tr/type_identify.c
@@
-1,6
+1,6
@@
/*
* Project: libFIRM
/*
* Project: libFIRM
- * File name: ir/tr/type.c
+ * File name: ir/tr/type
_identify
.c
* Purpose: Representation of types.
* Author: Goetz Lindenmaier
* Modified by:
* Purpose: Representation of types.
* Author: Goetz Lindenmaier
* Modified by:
@@
-11,8
+11,8
@@
*/
/**
*/
/**
- *
file type.c - implementation of the datastructure to hold
- *
type information.
+ *
@file type_identify.c
+ *
* (C) 2004 by Universitaet Karlsruhe
* Goetz Lindenmaier
*
* (C) 2004 by Universitaet Karlsruhe
* Goetz Lindenmaier
*
@@
-36,6
+36,7
@@
#include "irprog_t.h"
#include "mangle.h"
#include "pset.h"
#include "irprog_t.h"
#include "mangle.h"
#include "pset.h"
+#include "irtools.h"
/* The hash set for types. */
static pset *type_table = NULL;
/* The hash set for types. */
static pset *type_table = NULL;
@@
-62,8
+63,8
@@
int compare_strict (const void *tp1, const void *tp2) {
/* stuff to compute a hash value for a type. */
int firm_hash_name (type *tp) {
/* stuff to compute a hash value for a type. */
int firm_hash_name (type *tp) {
- unsigned h = (unsigned)
tp->type_op
;
- h = 9*h + (unsigned)
tp->name
;
+ unsigned h = (unsigned)
PTR_TO_INT(tp->type_op)
;
+ h = 9*h + (unsigned)
PTR_TO_INT(tp->name)
;
return h;
}
return h;
}