From: Matthias Braun Date: Wed, 14 Dec 2011 15:37:30 +0000 (+0100) Subject: trouts: move add_* functions to private API X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=abe1a1208ecb24b75b001bfe98ea0c500407a094;p=libfirm trouts: move add_* functions to private API --- diff --git a/include/libfirm/trouts.h b/include/libfirm/trouts.h index a6965e056..2d2fcc2f9 100644 --- a/include/libfirm/trouts.h +++ b/include/libfirm/trouts.h @@ -63,19 +63,16 @@ FIRM_API ir_node *get_type_alloc(const ir_type *tp, size_t pos); FIRM_API size_t get_type_n_casts(const ir_type *tp); /** Cast node that cast a pointer to this type. */ FIRM_API ir_node *get_type_cast(const ir_type *tp, size_t pos); -FIRM_API void add_type_cast(const ir_type *tp, ir_node *cast); -/** Return number of upcasts. O(\#casts). */ +/** Returns number of upcasts. O(\#casts). */ FIRM_API size_t get_class_n_upcasts(const ir_type *clss); /** Return number of downcasts. O(\#casts). */ FIRM_API size_t get_class_n_downcasts(const ir_type *clss); FIRM_API size_t get_type_n_pointertypes_to(const ir_type *tp); FIRM_API ir_type *get_type_pointertype_to(const ir_type *tp, size_t pos); -FIRM_API void add_type_pointertype_to(const ir_type *tp, ir_type *ptp); FIRM_API size_t get_type_n_arraytypes_of(const ir_type *tp); FIRM_API ir_type *get_type_arraytype_of(const ir_type *tp, size_t pos); -FIRM_API void add_type_arraytype_of(const ir_type *tp, ir_type *atp); /** Compute the outs of types and entities. * diff --git a/ir/ana/trouts.c b/ir/ana/trouts.c index d03c04f1f..6a942648e 100644 --- a/ir/ana/trouts.c +++ b/ir/ana/trouts.c @@ -25,7 +25,7 @@ */ #include "config.h" -#include "trouts.h" +#include "trouts_t.h" #include "array.h" #include "pmap.h" diff --git a/ir/ana/trouts_t.h b/ir/ana/trouts_t.h new file mode 100644 index 000000000..11eda607b --- /dev/null +++ b/ir/ana/trouts_t.h @@ -0,0 +1,35 @@ +/* + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. + */ + +/** + * @file + * @brief Reverse edges that reference types/entities. + * @author Goetz Lindenmaier + * @date 29.10.2004 + */ +#ifndef FIRM_ANA_TROUTS_T_H +#define FIRM_ANA_TROUTS_T_H + +#include "trouts.h" + +void add_type_cast(const ir_type *tp, ir_node *cast); +void add_type_pointertype_to(const ir_type *tp, ir_type *ptp); +void add_type_arraytype_of(const ir_type *tp, ir_type *atp); + +#endif