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,7 +20,7 @@
|
||||||
#ifndef DWARF2_PUBLIC_H
|
#ifndef DWARF2_PUBLIC_H
|
||||||
#define DWARF2_PUBLIC_H
|
#define DWARF2_PUBLIC_H
|
||||||
|
|
||||||
extern int dwarf2_has_info (struct objfile *,
|
extern bool dwarf2_has_info (struct objfile *,
|
||||||
const struct dwarf2_debug_sections *,
|
const struct dwarf2_debug_sections *,
|
||||||
bool = false);
|
bool = false);
|
||||||
|
|
||||||
|
|
|
@ -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
|
interposition is possible and so symbol values must follow copy
|
||||||
relocation rules. */
|
relocation rules. */
|
||||||
|
|
||||||
int
|
bool
|
||||||
dwarf2_has_info (struct objfile *objfile,
|
dwarf2_has_info (struct objfile *objfile,
|
||||||
const struct dwarf2_debug_sections *names,
|
const struct dwarf2_debug_sections *names,
|
||||||
bool can_copy)
|
bool can_copy)
|
||||||
{
|
{
|
||||||
if (objfile->flags & OBJF_READNEVER)
|
if (objfile->flags & OBJF_READNEVER)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
|
dwarf2_per_objfile *per_objfile = get_dwarf2_per_objfile (objfile);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue