Convert contained_in to method

This converts contained_in to be a method of block.
This commit is contained in:
Tom Tromey
2023-01-20 07:46:51 -07:00
parent b32797e8b9
commit 0d1912950e
8 changed files with 20 additions and 22 deletions

View File

@@ -895,7 +895,7 @@ frame_id_inner (struct gdbarch *gdbarch, struct frame_id l, struct frame_id r)
/* This will return true if LB and RB are the same block, or
if the block with the smaller depth lexically encloses the
block with the greater depth. */
inner = contained_in (lb, rb);
inner = rb->contains (lb);
}
else
/* Only return non-zero when strictly inner than. Note that, per