summaryrefslogtreecommitdiffhomepage
path: root/ir/common
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/common
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/firm.c38
-rw-r--r--ir/common/panic.c8
2 files changed, 24 insertions, 22 deletions
diff --git a/ir/common/firm.c b/ir/common/firm.c
index 63fb922..a4de24c 100644
--- a/ir/common/firm.c
+++ b/ir/common/firm.c
@@ -8,33 +8,35 @@
* @brief Central firm functionality.
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier
*/
-#include <stdio.h>
+#include "firm_common.h"
#ifdef HAVE_FIRM_REVISION_H
-# include "firm_revision.h"
+#include "firm_revision.h"
#endif
-#include "version.h"
-#include <stdio.h>
-#include "lc_opts.h"
-#include "ident_t.h"
+
+#include "be_t.h"
+#include "debugger.h"
+#include "entity_t.h"
+#include "execfreq_t.h"
#include "firm.h"
-#include "irflag_t.h"
-#include "tv_t.h"
-#include "irprog_t.h"
-#include "irnode_t.h"
-#include "irmode_t.h"
+#include "ident_t.h"
#include "ircons_t.h"
+#include "iredges_t.h"
+#include "irflag_t.h"
#include "irgraph_t.h"
-#include "type_t.h"
-#include "entity_t.h"
#include "irhooks.h"
-#include "iredges_t.h"
#include "irmemory_t.h"
-#include "opt_init.h"
-#include "debugger.h"
-#include "be_t.h"
+#include "irmode_t.h"
+#include "irnode_t.h"
+#include "irprog_t.h"
#include "irtools.h"
-#include "execfreq_t.h"
+#include "lc_opts.h"
+#include "opt_init.h"
+#include "tv_t.h"
+#include "type_t.h"
+#include "version.h"
+#include <stdio.h>
+#include <stdio.h>
/* returns the firm root */
lc_opt_entry_t *firm_opt_get_root(void)
diff --git a/ir/common/panic.c b/ir/common/panic.c
index c427b9b..8626a18 100644
--- a/ir/common/panic.c
+++ b/ir/common/panic.c
@@ -8,12 +8,12 @@
* @brief Error handling for libFirm
* @author Michael Beck
*/
-#include <stdlib.h>
+#include "panic.h"
-#include <stdio.h>
-#include <stdarg.h>
#include "irprintf.h"
-#include "panic.h"
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
FIRM_NORETURN print_panic(char const *const file, int const line,
char const *const func, char const *const fmt, ...)