summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2014-01-06 13:35:00 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2014-01-14 16:58:36 +0100
commita2f0f545fcae7419b4daf83ed0032d9ad28e7b49 (patch)
tree9671edc3f2d762619f31f42d7bdfb24e141912ef /ir/common
parent339fc410208dcb7866871fdea908bbec6987c5c4 (diff)
Remove the unimplemented macro POINTER_READ().
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/firm_common.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ir/common/firm_common.c b/ir/common/firm_common.c
index d852d54..0a32223 100644
--- a/ir/common/firm_common.c
+++ b/ir/common/firm_common.c
@@ -10,14 +10,8 @@
#include "irloop.h"
#include "tv.h"
-/**
- * Ideally, this macro would check if size bytes could be read at
- * pointer p. No generic solution.
- */
-#define POINTER_READ(p, size) (p)
-
/* returns the kind of the thing */
firm_kind get_kind(const void *firm_thing)
{
- return POINTER_READ(firm_thing, sizeof(firm_kind)) ? *(firm_kind *)firm_thing : k_BAD;
+ return *(firm_kind*)firm_thing;
}