projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use symbolic names instead of magic values for the position parameter of get_irn_n().
[libfirm]
/
ir
/
be
/
TEMPLATE
/
TEMPLATE_transform.c
diff --git
a/ir/be/TEMPLATE/TEMPLATE_transform.c
b/ir/be/TEMPLATE/TEMPLATE_transform.c
index
5e6e8d9
..
f345e3d
100644
(file)
--- a/
ir/be/TEMPLATE/TEMPLATE_transform.c
+++ b/
ir/be/TEMPLATE/TEMPLATE_transform.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-17,8
+17,11
@@
* PURPOSE.
*/
* PURPOSE.
*/
-/* The codegenrator (transform FIRM into TEMPLATE FIRM */
-/* $Id$ */
+/**
+ * @file
+ * @brief code selection (transform FIRM into TEMPLATE FIRM)
+ * @version $Id$
+ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@
-30,7
+33,6
@@
#include "iredges.h"
#include "irvrfy.h"
#include "ircons.h"
#include "iredges.h"
#include "irvrfy.h"
#include "ircons.h"
-#include "dbginfo.h"
#include "iropt_t.h"
#include "debug.h"
#include "iropt_t.h"
#include "debug.h"
@@
-38,7
+40,7
@@
#include "bearch_TEMPLATE_t.h"
#include "TEMPLATE_nodes_attr.h"
#include "bearch_TEMPLATE_t.h"
#include "TEMPLATE_nodes_attr.h"
-#include "
../arch/archop.h" /* we need this for Min and Max nodes */
+#include "
archop.h"
#include "TEMPLATE_transform.h"
#include "TEMPLATE_new_nodes.h"
#include "TEMPLATE_map_regs.h"
#include "TEMPLATE_transform.h"
#include "TEMPLATE_new_nodes.h"
#include "TEMPLATE_map_regs.h"
@@
-306,10
+308,13
@@
static ir_node *gen_Store(TEMPLATE_transform_env_t *env) {
* @param env the debug module
*/
void TEMPLATE_transform_node(ir_node *node, void *env) {
* @param env the debug module
*/
void TEMPLATE_transform_node(ir_node *node, void *env) {
+#ifdef DEBUG_libfirm
TEMPLATE_code_gen_t *cgenv = (TEMPLATE_code_gen_t *)env;
TEMPLATE_code_gen_t *cgenv = (TEMPLATE_code_gen_t *)env;
+#endif
ir_opcode code = get_irn_opcode(node);
ir_node *asm_node = NULL;
TEMPLATE_transform_env_t tenv;
ir_opcode code = get_irn_opcode(node);
ir_node *asm_node = NULL;
TEMPLATE_transform_env_t tenv;
+ (void) env;
if (is_Block(node))
return;
if (is_Block(node))
return;