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

rename error.h to panic.h

parent e1fa42e4
......@@ -38,7 +38,7 @@
#include "bespillslots.h"
#include "bestack.h"
#include "beirgmod.h"
#include "error.h"
#include "panic.h"
static int get_first_same(const arch_register_req_t *req)
{
......
......@@ -9,7 +9,7 @@
* @author Matthias Braun
*/
#include "bearch_sparc_t.h"
#include "error.h"
#include "panic.h"
#include "sparc_nodes_attr.h"
#include "gen_sparc_new_nodes.h"
#include "lower_dw.h"
......
......@@ -9,7 +9,7 @@
* @author Matthias Braun
*/
#include "beirg.h"
#include "error.h"
#include "panic.h"
#include "firm_types.h"
#include "irnode_t.h"
#include "bearch_sparc_t.h"
......
......@@ -21,7 +21,7 @@
#include "dbginfo.h"
#include "iropt_t.h"
#include "debug.h"
#include "error.h"
#include "panic.h"
#include "util.h"
#include "benode.h"
......
......@@ -12,11 +12,11 @@
#include <stdio.h>
#include <stdarg.h>
#include "error.h"
#include "irprintf.h"
#include "panic.h"
FIRM_NORETURN (panic)(char const *const file, int const line,
char const *const func, char const *const fmt, ...)
FIRM_NORETURN print_panic(char const *const file, int const line,
char const *const func, char const *const fmt, ...)
{
va_list ap;
......
......@@ -5,20 +5,20 @@
/**
* @file
* @brief Error handling for libFirm
* @brief Panic routine
* @author Michael Beck
*/
#ifndef FIRM_COMMON_ERROR_H
#define FIRM_COMMON_ERROR_H
#ifndef FIRM_COMMON_PANIC_H
#define FIRM_COMMON_PANIC_H
#include "funcattr.h"
/**
* Prints a panic message to stderr and exits.
*/
FIRM_NORETURN panic(char const *file, int line, char const *func,
char const *fmt, ...);
FIRM_NORETURN print_panic(char const *file, int line, char const *func,
char const *fmt, ...);
#define panic(...) panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
#define panic(...) print_panic(__FILE__, __LINE__, __func__, __VA_ARGS__)
# endif
......@@ -12,7 +12,7 @@
#include "timing.h"
#include "xmalloc.h"
#include "error.h"
#include "panic.h"
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
......
......@@ -13,7 +13,7 @@
#include "irnode_t.h"
#include "type_t.h"
#include "entity_t.h"
#include "error.h"
#include "panic.h"
merge_pair_func *__dbg_info_merge_pair = default_dbg_info_merge_pair;
merge_sets_func *__dbg_info_merge_sets = default_dbg_info_merge_sets;
......
......@@ -36,7 +36,7 @@
#include "irdump.h"
#include "iredges_t.h"
#include "debug.h"
#include "error.h"
#include "panic.h"
#include "util.h"
void firm_debug_break(void)
......
......@@ -11,7 +11,7 @@
*/
#include <stdbool.h>
#include "error.h"
#include "panic.h"
#include "instrument.h"
#include "ircons.h"
#include "iredges.h"
......
......@@ -32,7 +32,7 @@
#include "irarch.h"
#include "irflag.h"
#include "be.h"
#include "error.h"
#include "panic.h"
/** The bit mask, which optimizations to apply. */
static arch_dep_opts_t opts;
......
......@@ -13,7 +13,7 @@
#include "../adt/util.h"
#include "array.h"
#include "error.h"
#include "panic.h"
#include "irbackedge_t.h"
#include "ircons_t.h"
#include "iredges_t.h"
......
......@@ -36,7 +36,7 @@
#include "irverify.h"
#include "error.h"
#include "panic.h"
#include "array.h"
#include "pmap.h"
#include "obst.h"
......
......@@ -22,7 +22,7 @@
#include "irgwalk.h"
#include "tv_t.h"
#include "irprintf.h"
#include "error.h"
#include "panic.h"
#include "cgana.h"
#include "irdom.h"
......
......@@ -22,7 +22,7 @@
#include "debug.h"
#include "set.h"
#include "bitset.h"
#include "error.h"
#include "panic.h"
#include "iredgeset.h"
#include "hashptr.h"
......
......@@ -18,7 +18,7 @@
#include "irhooks.h"
#include "iredges_t.h"
#include "irtools.h"
#include "error.h"
#include "panic.h"
void turn_into_tuple(ir_node *const node, int const arity,
ir_node *const *const in)
......
......@@ -22,7 +22,7 @@
#include "entity_t.h"
#include "ircons.h"
#include "error.h"
#include "panic.h"
#include "pset_new.h"
#include "array.h"
......
......@@ -25,7 +25,7 @@
#include "irgwalk.h"
#include "tv_t.h"
#include "array.h"
#include "error.h"
#include "panic.h"
#include "typerep.h"
#include "set.h"
#include "obst.h"
......
......@@ -19,7 +19,7 @@
#include "obst.h"
#include "irhooks.h"
#include "array.h"
#include "error.h"
#include "panic.h"
#include "pattern_dmp.h"
#include "strcalc.h"
......
......@@ -22,7 +22,7 @@
#include "iredgekinds.h"
#include "iredges_t.h"
#include "ircons.h"
#include "error.h"
#include "panic.h"
#include "irverify.h"
#include "irhooks.h"
......
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