From: Matthias Braun Date: Fri, 4 Sep 2009 13:18:57 +0000 (+0000) Subject: only compile pbqp stuff if pbqp defines are enabled X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=37a5b71805c64d63532e1dc10e37bfe516dbdc42;p=libfirm only compile pbqp stuff if pbqp defines are enabled [r26487] --- diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index 6cf88f7f1..f4c28a335 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -1119,7 +1119,9 @@ static co_algo_info_t algos[] = { #else { NULL, "ilp", 1 }, #endif +#ifdef FIRM_KAPS { co_solve_heuristic_pbqp, "pbqp", 0 }, +#endif { NULL, "", 0 } }; diff --git a/ir/be/becopypbqp.c b/ir/be/becopypbqp.c index c222bbe55..183bc4963 100644 --- a/ir/be/becopypbqp.c +++ b/ir/be/becopypbqp.c @@ -4,6 +4,7 @@ * Created on: Aug 28, 2009 * Author: bersch */ +#ifdef FIRM_KAPS #include "kaps.h" #include "pbqp_t.h" @@ -213,3 +214,5 @@ int co_solve_heuristic_pbqp(copy_opt_t *co) { return 0; } + +#endif