summaryrefslogtreecommitdiffstats
path: root/loc2c.h
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-09-16 12:22:04 +0200
committerMark Wielaard <mjw@redhat.com>2009-09-16 12:22:04 +0200
commit86598ebfa13479b4ba3b6b7a9de25c3e497ff57e (patch)
treecf4db8f202856ad1d9546ab377b88c3379d14951 /loc2c.h
parente3e5c5563d361c206fba99b98b0f9f8a135089ce (diff)
downloadsystemtap-steved-86598ebfa13479b4ba3b6b7a9de25c3e497ff57e.tar.gz
systemtap-steved-86598ebfa13479b4ba3b6b7a9de25c3e497ff57e.tar.xz
systemtap-steved-86598ebfa13479b4ba3b6b7a9de25c3e497ff57e.zip
Clean up dwflpp::translate_location workaround for DW_AT_data_member_location.
Do the same workaround as loc2c-test.c does. Just treat a constant member location offset as a DW_OP_plus_uconst and call c_translate_location for it. Also Remove c_translate_add_offset. * dwflpp.cxx (dwflpp::translate_location): Check elfutils version and only do workaround for elfutils < 0.142. * loc2c.h (c_translate_add_offset): Removed. * loc2c.c (c_translate_add_offset): Likewise.
Diffstat (limited to 'loc2c.h')
-rw-r--r--loc2c.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/loc2c.h b/loc2c.h
index 449d4499..8bc59d29 100644
--- a/loc2c.h
+++ b/loc2c.h
@@ -87,13 +87,6 @@ c_translate_pointer_store (struct obstack *pool, int indent,
Dwarf_Die *typedie, struct location **input,
const char *rvalue);
-/* Translate a fragment to add an offset to the currently calculated
- address of the input location. Used for struct fields. Only works
- when location is already an actual base address. */
-void
-c_translate_add_offset (struct obstack *pool, int indent, const char *comment,
- Dwarf_Sword off, struct location **input);
-
/* Translate a C fragment for a direct argument VALUE. On errors, call FAIL,
which should not return. Any later errors will use FAIL and FAIL_ARG from
this translate call. On success, return the fragment created. */