From 4d3c480990cdbbd3e0c405be03a195a040b4dc4a Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 23 Feb 2010 14:40:18 -0600 Subject: Removed rvalue operator check. * tapset-procfs.cxx (procfs_var_expanding_visitor::visit_target_symbol): Removed unneeded rvalue operator check. --- tapset-procfs.cxx | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) (limited to 'tapset-procfs.cxx') diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx index d05ab52c..1926582b 100644 --- a/tapset-procfs.cxx +++ b/tapset-procfs.cxx @@ -386,19 +386,11 @@ procfs_var_expanding_visitor::visit_target_symbol (target_symbol* e) if (! lvalue) { - if (*op == "=") - { - fname = "_procfs_value_get"; - ec->code = string(" struct _stp_procfs_data *data = (struct _stp_procfs_data *)(") + locvalue + string("); /* pure */\n") + fname = "_procfs_value_get"; + ec->code = string(" struct _stp_procfs_data *data = (struct _stp_procfs_data *)(") + locvalue + string("); /* pure */\n") - + string(" _stp_copy_from_user(THIS->__retvalue, data->buffer, data->count);\n") - + string(" THIS->__retvalue[data->count] = '\\0';\n"); - } - else - { - throw semantic_error ("Operator-assign expressions on procfs write" - " target variables not implemented", e->tok); - } + + string(" _stp_copy_from_user(THIS->__retvalue, data->buffer, data->count);\n") + + string(" THIS->__retvalue[data->count] = '\\0';\n"); } else // lvalue { -- cgit