summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 07:14:48 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 08:07:41 +0100
commit06cb80c5b7f318fb1fc0caef3adcf84b9802df6c (patch)
tree72c596abcda06468ebe41d0038f520e10f19acc3 /ir/tr
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/entity.c14
-rw-r--r--ir/tr/tr_inheritance.c6
-rw-r--r--ir/tr/trverify.c6
-rw-r--r--ir/tr/type.c30
-rw-r--r--ir/tr/typewalk.c14
5 files changed, 33 insertions, 37 deletions
diff --git a/ir/tr/entity.c b/ir/tr/entity.c
index 799135b..2e82dce 100644
--- a/ir/tr/entity.c
+++ b/ir/tr/entity.c
@@ -8,18 +8,18 @@
* @brief Representation of all program known entities.
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
*/
-#include <stdlib.h>
-
-#include "xmalloc.h"
#include "entity_t.h"
+
#include "array.h"
-#include "util.h"
-#include "irhooks.h"
-#include "irprog_t.h"
+#include "callgraph.h"
#include "irdump.h"
#include "irgraph_t.h"
-#include "callgraph.h"
+#include "irhooks.h"
+#include "irprog_t.h"
#include "panic.h"
+#include "util.h"
+#include "xmalloc.h"
+#include <stdlib.h>
/** The name of the unknown entity. */
#define UNKNOWN_ENTITY_NAME "unknown_entity"
diff --git a/ir/tr/tr_inheritance.c b/ir/tr/tr_inheritance.c
index bdd86f5..05ca236 100644
--- a/ir/tr/tr_inheritance.c
+++ b/ir/tr/tr_inheritance.c
@@ -8,13 +8,13 @@
* @brief Utility routines for inheritance representation
* @author Goetz Lindenmaier
*/
-#include "typerep.h"
+#include "irflag.h"
#include "irgraph_t.h"
+#include "irgwalk.h"
#include "irprog_t.h"
#include "pset.h"
#include "set.h"
-#include "irgwalk.h"
-#include "irflag.h"
+#include "typerep.h"
/* ----------------------------------------------------------------------- */
/* The transitive closure of the subclass/superclass and */
diff --git a/ir/tr/trverify.c b/ir/tr/trverify.c
index 9e3d7ee..eea4a67 100644
--- a/ir/tr/trverify.c
+++ b/ir/tr/trverify.c
@@ -9,12 +9,12 @@
* @date 29.1.2003
* @author Michael Beck, Goetz Lindenmaier
*/
-#include "irgraph_t.h"
+#include "ircons.h"
#include "irflag_t.h"
-#include "irprintf.h"
+#include "irgraph_t.h"
#include "irgwalk.h"
+#include "irprintf.h"
#include "tv.h"
-#include "ircons.h"
static void report_error(const char *fmt, ...)
{
diff --git a/ir/tr/type.c b/ir/tr/type.c
index 011f865..71e9a00 100644
--- a/ir/tr/type.c
+++ b/ir/tr/type.c
@@ -27,27 +27,25 @@
* on the level of the programming language, modes at the level of
* the target processor.
*/
-#include <string.h>
-#include <stdlib.h>
-#include <stddef.h>
-#include <stdbool.h>
-
-#include "irnode_t.h"
#include "type_t.h"
-#include "xmalloc.h"
-#include "irprog_t.h"
+#include "array.h"
+#include "bitfiddle.h"
+#include "dbginfo.h"
+#include "entity_t.h"
#include "ircons.h"
-#include "tv_t.h"
#include "irhooks.h"
-#include "util.h"
-#include "entity_t.h"
-#include "panic.h"
-#include "dbginfo.h"
+#include "irnode_t.h"
#include "irprog_t.h"
-#include "bitfiddle.h"
-
-#include "array.h"
+#include "irprog_t.h"
+#include "panic.h"
+#include "tv_t.h"
+#include "util.h"
+#include "xmalloc.h"
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdlib.h>
+#include <string.h>
static ir_type *new_type(tp_opcode opcode, size_t attr_size, ir_mode *mode);
static void free_compound_entities(ir_type *type);
diff --git a/ir/tr/typewalk.c b/ir/tr/typewalk.c
index d0f797a..0623495 100644
--- a/ir/tr/typewalk.c
+++ b/ir/tr/typewalk.c
@@ -14,18 +14,16 @@
* - execute the pre function before recursion
* - execute the post function after recursion
*/
-#include <stdlib.h>
-#include <stdio.h>
-
#include "entity_t.h"
-#include "type_t.h"
-
-#include "irprog_t.h"
+#include "ircons.h"
#include "irgraph_t.h"
-#include "irnode_t.h"
#include "irgwalk.h"
+#include "irnode_t.h"
+#include "irprog_t.h"
#include "panic.h"
-#include "ircons.h"
+#include "type_t.h"
+#include <stdio.h>
+#include <stdlib.h>
/**
* The walker environment