Commit abe1a120 authored by Matthias Braun's avatar Matthias Braun
Browse files

trouts: move add_* functions to private API

parent ca8347e7
......@@ -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.
......@@ -25,7 +25,7 @@
#include "config.h"
#include "trouts.h"
#include "trouts_t.h"
#include "array.h"
#include "pmap.h"
* 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
* @file
* @brief Reverse edges that reference types/entities.
* @author Goetz Lindenmaier
* @date 29.10.2004
#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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment