From: Matthias Braun Date: Sun, 28 Oct 2007 15:19:06 +0000 (+0000) Subject: compile without warnings when WITH_JVM is not set X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=422b911f9dc3e88918e8fb69df9ac72b198553a5;p=libfirm compile without warnings when WITH_JVM is not set [r16377] --- diff --git a/ir/be/becopyheur3.c b/ir/be/becopyheur3.c index d8de8b2af..eb0e0f4e5 100644 --- a/ir/be/becopyheur3.c +++ b/ir/be/becopyheur3.c @@ -28,6 +28,8 @@ #include "config.h" #endif +#ifdef WITH_JVM + #include #include @@ -237,3 +239,5 @@ int co_solve_heuristic_java(copy_opt_t *co) bitset_free(nodes); return 0; } + +#endif diff --git a/ir/be/bejavacoal.c b/ir/be/bejavacoal.c index 97a28a2c5..0a30fb55e 100644 --- a/ir/be/bejavacoal.c +++ b/ir/be/bejavacoal.c @@ -439,59 +439,6 @@ void be_java_coal_start_jvm(void) #else /* ! WITH_JVM */ -be_java_coal_t *be_java_coal_init(const char *graph_name, int n_nodes, int n_regs, int dbg_level) -{ - assert(0 && "use --enable-jvm"); - return NULL; -} - -void be_java_coal_destroy(be_java_coal_t *c) -{ - assert(0 && "use --enable-jvm"); -} - - -void be_java_coal_add_int_edge(be_java_coal_t *c, int n, int m) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_add_aff_edge(be_java_coal_t *c, int n, int m, int weight) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_set_color(be_java_coal_t *c, int n, int col) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_set_debug(be_java_coal_t *c, int n, const char *dbg) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_forbid_color(be_java_coal_t *c, int n, int col) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_coalesce(be_java_coal_t *c) -{ - assert(0 && "use --enable-jvm"); -} - -void be_java_coal_dump(be_java_coal_t *c, const char *fn) -{ - assert(0 && "use --enable-jvm"); -} - -int be_java_coal_get_color(be_java_coal_t *c, int n) -{ - assert(0 && "use --enable-jvm"); - return -1; -} - void be_java_coal_start_jvm(void) { }