compiler/PPCMethod.st
changeset 448 02db0b67ed3f
parent 438 20598d7ce9fa
child 453 bd5107faf4d6
--- 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