projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0f0afe7
)
- drop dependency of mode_Bs
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 27 Nov 2008 14:46:05 +0000
(14:46 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Thu, 27 Nov 2008 14:46:05 +0000
(14:46 +0000)
[r24063]
ir/be/begnuas.c
patch
|
blob
|
history
diff --git
a/ir/be/begnuas.c
b/ir/be/begnuas.c
index
bf85fc8
..
a2d36cb
100644
(file)
--- a/
ir/be/begnuas.c
+++ b/
ir/be/begnuas.c
@@
-547,8
+547,7
@@
static int initializer_is_string_const(const ir_initializer_t *initializer)
tv = sub_initializer->tarval.value;
mode = get_tarval_mode(tv);
tv = sub_initializer->tarval.value;
mode = get_tarval_mode(tv);
- if (!mode_is_int(mode)
- || get_mode_size_bits(mode) != get_mode_size_bits(mode_Bs))
+ if (!mode_is_int(mode) || get_mode_size_bits(mode) != 8)
return 0;
c = get_tarval_long(tv);
return 0;
c = get_tarval_long(tv);
@@
-591,8
+590,7
@@
static int ent_is_string_const(ir_entity *ent)
/* and the mode of the element type is an int of
* the same size as the byte mode */
mode = get_type_mode(element_type);
/* and the mode of the element type is an int of
* the same size as the byte mode */
mode = get_type_mode(element_type);
- if (!mode_is_int(mode)
- || get_mode_size_bits(mode) != get_mode_size_bits(mode_Bs))
+ if (!mode_is_int(mode) || get_mode_size_bits(mode) != 8)
return 0;
if (ent->has_initializer) {
return 0;
if (ent->has_initializer) {