diff options
author | fche <fche> | 2005-11-28 21:58:39 +0000 |
---|---|---|
committer | fche <fche> | 2005-11-28 21:58:39 +0000 |
commit | bdf00cf6b089eccd30b5cfec8c06be7b949749d8 (patch) | |
tree | 24972385c1543a7f9ceda5ea4589ef1b8b7352d0 /translate.cxx | |
parent | cee621f2087a78f222c5d3da9db766db83abaef1 (diff) | |
download | systemtap-steved-bdf00cf6b089eccd30b5cfec8c06be7b949749d8.tar.gz systemtap-steved-bdf00cf6b089eccd30b5cfec8c06be7b949749d8.tar.xz systemtap-steved-bdf00cf6b089eccd30b5cfec8c06be7b949749d8.zip |
2005-11-28 Frank Ch. Eigler <fche@redhat.com>
* translate.cxx (c_tmpcounter_assignment::visit_symbol): Don't
emit unused temporary into context. Saves mucho space with strings.
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx index e47f2856..2035477e 100644 --- a/translate.cxx +++ b/translate.cxx @@ -2383,7 +2383,9 @@ c_tmpcounter_assignment::visit_symbol (symbol *e) tmpvar res = parent->parent->gensym (ty); tmp.declare (*(parent->parent)); - res.declare (*(parent->parent)); + + if (op != "=") // simple assignment is shortcut both for strings and numbers + res.declare (*(parent->parent)); if (rvalue) rvalue->visit (parent); |