Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
a97bec90
Commit
a97bec90
authored
Sep 05, 2015
by
Matthias Braun
Browse files
bedwarf: rename method->function
parent
07e911f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
ir/be/bedwarf.c
View file @
a97bec90
...
...
@@ -74,7 +74,7 @@ typedef enum custom_abbrevs {
* The dwarf handle.
*/
typedef
struct
dwarf_t
{
const
ir_entity
*
cur_ent
;
/**< current
method
entity */
const
ir_entity
*
cur_ent
;
/**< current
function
entity */
unsigned
next_type_nr
;
/**< next type number */
pmap
*
file_map
;
/**< a map from file names to number in
file list */
...
...
@@ -453,8 +453,8 @@ static void emit_function_parameters(const ir_entity *entity,
}
}
void
be_dwarf_
method
_before
(
const
ir_entity
*
entity
,
const
parameter_dbg_info_t
*
parameter_infos
)
void
be_dwarf_
function
_before
(
const
ir_entity
*
entity
,
const
parameter_dbg_info_t
*
parameter_infos
)
{
if
(
debug_level
<
LEVEL_BASIC
)
return
;
...
...
@@ -483,7 +483,7 @@ void be_dwarf_method_before(const ir_entity *entity,
}
emit_int8
(
is_extern_entity
(
entity
));
emit_ref
(
entity
);
be_emit_irprintf
(
"
\t
.long %s
method
_end_%s
\n
"
,
be_gas_get_private_prefix
(),
be_emit_irprintf
(
"
\t
.long %s
function
_end_%s
\n
"
,
be_gas_get_private_prefix
(),
get_entity_ld_name
(
entity
));
/* frame_base prog */
emit_int8
(
1
);
...
...
@@ -497,7 +497,7 @@ void be_dwarf_method_before(const ir_entity *entity,
env
.
cur_ent
=
entity
;
}
void
be_dwarf_
method
_begin
(
void
)
void
be_dwarf_
function
_begin
(
void
)
{
if
(
debug_level
<
LEVEL_FRAMEINFO
)
return
;
...
...
@@ -505,12 +505,12 @@ void be_dwarf_method_begin(void)
be_emit_write_line
();
}
void
be_dwarf_
method
_end
(
void
)
void
be_dwarf_
function
_end
(
void
)
{
if
(
debug_level
<
LEVEL_BASIC
)
return
;
const
ir_entity
*
entity
=
env
.
cur_ent
;
be_emit_irprintf
(
"%s
method
_end_%s:
\n
"
,
be_gas_get_private_prefix
(),
be_emit_irprintf
(
"%s
function
_end_%s:
\n
"
,
be_gas_get_private_prefix
(),
get_entity_ld_name
(
entity
));
if
(
debug_level
>=
LEVEL_FRAMEINFO
)
{
...
...
ir/be/bedwarf.h
View file @
a97bec90
...
...
@@ -30,15 +30,15 @@ void be_dwarf_unit_begin(const char *filename);
/** end compilation unit */
void
be_dwarf_unit_end
(
void
);
/** output debug info necessary right before defining a
method
*/
void
be_dwarf_
method
_before
(
const
ir_entity
*
ent
,
const
parameter_dbg_info_t
*
infos
);
/** output debug info necessary right before defining a
function
*/
void
be_dwarf_
function
_before
(
const
ir_entity
*
ent
,
const
parameter_dbg_info_t
*
infos
);
/** output debug info right before beginning to output assembly instructions */
void
be_dwarf_
method
_begin
(
void
);
void
be_dwarf_
function
_begin
(
void
);
/** debug for a
method
end */
void
be_dwarf_
method
_end
(
void
);
/** debug for a
function
end */
void
be_dwarf_
function
_end
(
void
);
/** dump a variable in the global type */
void
be_dwarf_variable
(
const
ir_entity
*
ent
);
...
...
ir/be/begnuas.c
View file @
a97bec90
...
...
@@ -522,7 +522,7 @@ static void emit_visibility(const ir_entity *entity, bool implicit_globl)
void
be_gas_emit_function_prolog
(
const
ir_entity
*
entity
,
unsigned
po2alignment
,
const
parameter_dbg_info_t
*
parameter_infos
)
{
be_dwarf_
method
_before
(
entity
,
parameter_infos
);
be_dwarf_
function
_before
(
entity
,
parameter_infos
);
be_gas_section_t
section
=
determine_section
(
NULL
,
entity
);
emit_section
(
section
,
entity
);
...
...
@@ -577,12 +577,12 @@ void be_gas_emit_function_prolog(const ir_entity *entity, unsigned po2alignment,
be_emit_cstring
(
":
\n
"
);
be_emit_write_line
();
be_dwarf_
method
_begin
();
be_dwarf_
function
_begin
();
}
void
be_gas_emit_function_epilog
(
const
ir_entity
*
entity
)
{
be_dwarf_
method
_end
();
be_dwarf_
function
_end
();
if
(
be_gas_object_file_format
==
OBJECT_FILE_FORMAT_ELF
)
{
be_emit_cstring
(
"
\t
.size
\t
"
);
...
...
@@ -1309,7 +1309,7 @@ static void emit_global(be_main_env_t const *const main_env,
if
(
kind
==
IR_ENTITY_LABEL
)
return
;
/* we already emitted all
method
s with graphs in other functions like
/* we already emitted all
function
s with graphs in other functions like
* be_gas_emit_function_prolog(). All others don't need to be emitted. */
be_gas_section_t
const
section
=
determine_section
(
main_env
,
entity
);
if
(
kind
==
IR_ENTITY_METHOD
&&
section
!=
GAS_SECTION_PIC_TRAMPOLINES
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment