Use bool for dwarf2_has_info
This changes dwarf2_has_info to return bool.
This commit is contained in:
parent
28f1a767db
commit
32e62cbcc1
2 changed files with 5 additions and 5 deletions
|
@ -20,9 +20,9 @@
|
|||
#ifndef DWARF2_PUBLIC_H
|
||||
#define DWARF2_PUBLIC_H
|
||||
|
||||
extern int dwarf2_has_info (struct objfile *,
|
||||
const struct dwarf2_debug_sections *,
|
||||
bool = false);
|
||||
extern bool dwarf2_has_info (struct objfile *,
|
||||
const struct dwarf2_debug_sections *,
|
||||
bool = false);
|
||||
|
||||
/* A DWARF names index variant. */
|
||||
enum class dw_index_kind
|
||||
|
|
|
@ -1549,13 +1549,13 @@ dwarf2_per_objfile::set_symtab (const dwarf2_per_cu_data *per_cu,
|
|||
interposition is possible and so symbol values must follow copy
|
||||
relocation rules. */
|
||||
|
||||
int
|
||||
bool
|
||||
dwarf2_has_info (struct objfile *objfile,
|
||||
const struct dwarf2_debug_sections *names,
|
||||
bool can_copy)
|
||||
{
|
||||
if (objfile->flags & OBJF_READNEVER)
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue