Made PPCMethod>>addVariable: obsolete.
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sat, 02 May 2015 07:03:07 +0200
changeset 448 02db0b67ed3f
parent 447 cfbc9055c83b
child 449 c1b26806ee0b
Made PPCMethod>>addVariable: obsolete. Use #allocateTemporaryVariableNamed: instead.
compiler/PPCMethod.st
--- a/compiler/PPCMethod.st	Sat May 02 07:00:39 2015 +0200
+++ b/compiler/PPCMethod.st	Sat May 02 07:03:07 2015 +0200
@@ -31,12 +31,11 @@
 !
 
 addVariable: name
-	(variables includes: name) ifTrue:[ 
-	    self error:'Duplicate variable name, must rename'.
-	].
-	variables add: name.
+    <resource: #obsolete>
+    self obsoleteFeatureWarning:'Use #allocateTemporaryVariableNamed: instead'.
+    self error: 'Should no longer be used'
 
-    "Modified: / 23-04-2015 / 12:29:58 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 02-05-2015 / 06:49:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 body