projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fehler109
[libfirm]
/
ir
/
be
/
beutil.h
diff --git
a/ir/be/beutil.h
b/ir/be/beutil.h
index
0574caf
..
5fbd6e3
100644
(file)
--- a/
ir/be/beutil.h
+++ b/
ir/be/beutil.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-54,7
+54,12
@@
pset *be_empty_set(void);
* @return The block of the node, or the node itself, if the node is a
* block.
*/
* @return The block of the node, or the node itself, if the node is a
* block.
*/
-static INLINE const ir_node *get_block(const ir_node *irn)
+static INLINE ir_node *get_block(ir_node *irn)
+{
+ return is_Block(irn) ? irn : get_nodes_block(irn);
+}
+
+static INLINE const ir_node *get_block_const(const ir_node *irn)
{
return is_Block(irn) ? irn : get_nodes_block(irn);
}
{
return is_Block(irn) ? irn : get_nodes_block(irn);
}