dwarf_loader: Add comment on why we can't ignore lexblocks
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9d0a7ee0c3
commit
dca86fb8c2
|
@ -1750,6 +1750,9 @@ static int die__process_function(Dwarf_Die *die, struct ftype *ftype,
|
|||
tag = die__create_new_inline_expansion(die, lexblock, cu, conf);
|
||||
break;
|
||||
case DW_TAG_lexical_block:
|
||||
// lexblocks can contain types that are then referenced from outside.
|
||||
// Thus we can't ignore them without more surgery, i.e. by adding code
|
||||
// to just process types inside lexblocks, leave this for later.
|
||||
if (die__create_new_lexblock(die, cu, lexblock, conf) != 0)
|
||||
goto out_enomem;
|
||||
continue;
|
||||
|
|
Loading…
Reference in New Issue