diff options
author | Josh Stone <jistone@redhat.com> | 2013-12-10 14:19:09 -0800 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2013-12-13 09:48:07 -0800 |
commit | 4e2787c2674bdb152e275edb3ed4d9939c8f62d7 (patch) | |
tree | 130b5a7cfb683667317603e04e337adfc2e8d973 /libdw/dwarf_getlocation.c | |
parent | c0d2a0b3a38bfb5164c1cf822d50e46cfad9c071 (diff) | |
download | elfutils-4e2787c2674bdb152e275edb3ed4d9939c8f62d7.tar.gz |
libdw: Simplify and inline get_uleb128 and get_sleb128
This removes the IS_LIBDW distinction so LEB128 operations are now
always inlined, and the implementations are simplified, more direct.
Signed-off-by: Josh Stone <jistone@redhat.com>
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r-- | libdw/dwarf_getlocation.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index 4124ae36..8dffb83f 100644 --- a/libdw/dwarf_getlocation.c +++ b/libdw/dwarf_getlocation.c @@ -100,8 +100,7 @@ store_implicit_value (Dwarf *dbg, void **cache, Dwarf_Op *op) struct loc_block_s *block = libdw_alloc (dbg, struct loc_block_s, sizeof (struct loc_block_s), 1); const unsigned char *data = (const unsigned char *) (uintptr_t) op->number2; - Dwarf_Word blength; // Ignored, equal to op->number. - get_uleb128 (blength, data); + (void) __libdw_get_uleb128 (&data); // Ignored, equal to op->number. block->addr = op; block->data = (unsigned char *) data; block->length = op->number; |