summaryrefslogtreecommitdiffstats
path: root/loc2c.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-09-16 12:18:50 -0400
committerDave Brolley <brolley@redhat.com>2009-09-16 12:18:50 -0400
commit0f4a9cb5967714ace01e0941592040b8c1d83ee7 (patch)
treef97784dbd9392694931c1be99abf7920f6f0484b /loc2c.c
parentd83d7b513d38791751e46a05e382b1e6876abefc (diff)
parentd833f810e4ffaf5c9c16eebc7f10b9d14e53e508 (diff)
downloadsystemtap-steved-0f4a9cb5967714ace01e0941592040b8c1d83ee7.tar.gz
systemtap-steved-0f4a9cb5967714ace01e0941592040b8c1d83ee7.tar.xz
systemtap-steved-0f4a9cb5967714ace01e0941592040b8c1d83ee7.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'loc2c.c')
-rw-r--r--loc2c.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/loc2c.c b/loc2c.c
index d4cb4666..5cf59691 100644
--- a/loc2c.c
+++ b/loc2c.c
@@ -1711,40 +1711,6 @@ c_translate_pointer_store (struct obstack *pool, int indent,
// XXX: what about multiple-location lvalues?
}
-
-/* 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)
-{
- indent++;
- if (comment == NULL || comment[0] == '\0')
- comment = "field offset";
- switch ((*input)->type)
- {
- case loc_address:
- obstack_printf (pool, "%*saddr += " SFORMAT "; // %s\n",
- indent * 2 + 2, "", off, comment);
- *input = (*input)->next = new_synthetic_loc (pool, *input, false);
- break;
-
- case loc_register:
- FAIL (*input, N_("cannot add offset of object in register"));
- break;
- case loc_noncontiguous:
- FAIL (*input, N_("cannot add offset of noncontiguous object"));
- break;
-
- default:
- abort ();
- break;
- }
-}
-
/* Determine the element stride of an array type. */
static Dwarf_Word
array_stride (Dwarf_Die *typedie, struct location *origin)