trouts: move add_* functions to private API
authorMatthias Braun <matze@braunis.de>
Wed, 14 Dec 2011 15:37:30 +0000 (16:37 +0100)
committerMatthias Braun <matze@braunis.de>
Wed, 14 Dec 2011 17:09:18 +0000 (18:09 +0100)
include/libfirm/trouts.h
ir/ana/trouts.c
ir/ana/trouts_t.h [new file with mode: 0644]

index a6965e0..2d2fcc2 100644 (file)
@@ -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.
  *
index d03c04f..6a94264 100644 (file)
@@ -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 (file)
index 0000000..11eda60
--- /dev/null
@@ -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