projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed transform_to_Load() and *_to_Store()
[libfirm]
/
ir
/
be
/
becopyilp.c
diff --git
a/ir/be/becopyilp.c
b/ir/be/becopyilp.c
index
1964a43
..
3e2469e
100644
(file)
--- a/
ir/be/becopyilp.c
+++ b/
ir/be/becopyilp.c
@@
-8,6
+8,12
@@
*
*/
*
*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
+#ifdef WITH_ILP
+
#include "becopyilp_t.h"
#include "beifg_t.h"
#include "becopyilp_t.h"
#include "beifg_t.h"
@@
-23,7
+29,7
@@
size_red_t *new_size_red(copy_opt_t *co) {
size_red_t *new_size_red(copy_opt_t *co) {
- size_red_t *res = malloc(sizeof(*res));
+ size_red_t *res =
x
malloc(sizeof(*res));
res->co = co;
res->all_removed = pset_new_ptr_default();
res->co = co;
res->all_removed = pset_new_ptr_default();
@@
-137,7
+143,7
@@
void free_size_red(size_red_t *sr) {
#include <stdio.h>
ilp_env_t *new_ilp_env(copy_opt_t *co, ilp_callback build, ilp_callback apply, void *env) {
#include <stdio.h>
ilp_env_t *new_ilp_env(copy_opt_t *co, ilp_callback build, ilp_callback apply, void *env) {
- ilp_env_t *res = malloc(sizeof(*res));
+ ilp_env_t *res =
x
malloc(sizeof(*res));
assert(res);
res->co = co;
assert(res);
res->co = co;
@@
-181,3
+187,10
@@
void free_ilp_env(ilp_env_t *ienv) {
free_lpp(ienv->lp);
free(ienv);
}
free_lpp(ienv->lp);
free(ienv);
}
+
+#else /* WITH_ILP */
+
+static void only_that_you_can_compile_without_WITH_ILP_defined(void) {
+}
+
+#endif /* WITH_ILP */