[phc-internals] [phc commit] r1150 - trunk/src/process_ir
codesite-noreply at google.com
codesite-noreply at google.com
Mon Apr 7 12:35:39 IST 2008
Author: paul.biggar
Date: Mon Apr 7 04:35:02 2008
New Revision: 1150
Modified:
trunk/src/process_ir/fresh.cpp
Log:
Re-use fresh_var_name in fresh_var.
Modified: trunk/src/process_ir/fresh.cpp
==============================================================================
--- trunk/src/process_ir/fresh.cpp (original)
+++ trunk/src/process_ir/fresh.cpp Mon Apr 7 04:35:02 2008
@@ -90,18 +90,13 @@
namespace HIR
{
-
Variable* fresh_var(string prefix)
{
- Variable* var = new Variable (
- NULL,
- new VARIABLE_NAME (fresh (prefix)),
+ return new Variable (
+ NULL,
+ fresh_var_name (prefix),
new List<Expr*>
);
-
- var->variable_name->attrs->set_true ("phc.codegen.st_entry_not_required");
- var->variable_name->attrs->set_true ("phc.codegen.compiler_generated");
- return var;
}
VARIABLE_NAME* fresh_var_name (string prefix)
More information about the phc-internals
mailing list