summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-05-26 11:43:37 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1997-05-26 11:43:37 +0000
commitb1c97ae634d378b73cc486a04e087204a7e5a1cc (patch)
treea0798d80605288a82ff524a0c30e24ed80620928
parent53280b6eedefad07a73c02f5e6d8d99ee97494aa (diff)
downloadperl-b1c97ae634d378b73cc486a04e087204a7e5a1cc.tar.gz
Put back objsym/savesym (used by walkoptree_exec).
p4raw-id: //depot/perlext/Compiler@21
-rw-r--r--B.pm20
1 files changed, 10 insertions, 10 deletions
diff --git a/B.pm b/B.pm
index ebc98b02fa..e3040628dd 100644
--- a/B.pm
+++ b/B.pm
@@ -109,17 +109,17 @@ sub timing_info {
$hr, $min, $sec, $user, $sys);
}
-#my %symtable;
-#sub savesym {
-# my ($obj, $value) = @_;
-## warn(sprintf("savesym: sym_%x => %s\n", $$obj, $value)); # debug
-# $symtable{sprintf("sym_%x", $$obj)} = $value;
-#}
+my %symtable;
+sub savesym {
+ my ($obj, $value) = @_;
+# warn(sprintf("savesym: sym_%x => %s\n", $$obj, $value)); # debug
+ $symtable{sprintf("sym_%x", $$obj)} = $value;
+}
-#sub objsym {
-# my $obj = shift;
-# return $symtable{sprintf("sym_%x", $$obj)};
-#}
+sub objsym {
+ my $obj = shift;
+ return $symtable{sprintf("sym_%x", $$obj)};
+}
sub walkoptree_exec {
my ($op, $method, $level) = @_;