diff options
author | Adrian Thurston <thurston@complang.org> | 2014-12-25 11:06:27 -0500 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2014-12-25 11:06:27 -0500 |
commit | 353ddb63f7268d2cc96df328c8562b4f3050d1d6 (patch) | |
tree | 2e063c019d1f9821b2c02f8d40c3e762e674f5b0 /src/synthesis.cc | |
parent | 3d3c0ad4877a225f5e14ef69d39ed3efdad27843 (diff) | |
download | colm-353ddb63f7268d2cc96df328c8562b4f3050d1d6.tar.gz |
commit to object semantics for new
Diffstat (limited to 'src/synthesis.cc')
-rw-r--r-- | src/synthesis.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/synthesis.cc b/src/synthesis.cc index 3f2efe50..b0ed2971 100644 --- a/src/synthesis.cc +++ b/src/synthesis.cc @@ -1056,15 +1056,6 @@ UniqueType *LangTerm::evaluateMatch( Compiler *pd, CodeVect &code ) const UniqueType *LangTerm::evaluateNew( Compiler *pd, CodeVect &code ) const { - /* Evaluate the expression. */ - UniqueType *ut = evaluateNewstruct( pd, code ); - - code.append( IN_TREE_NEW ); - return pd->findUniqueType( TYPE_PTR, ut->langEl ); -} - -UniqueType *LangTerm::evaluateNew2( Compiler *pd, CodeVect &code ) const -{ /* What is being newstructed. */ UniqueType *replUT = typeRef->uniqueType; @@ -1744,8 +1735,6 @@ UniqueType *LangTerm::evaluate( Compiler *pd, CodeVect &code ) const return evaluateSendTree( pd, code ); case NewType: return evaluateNew( pd, code ); - case New2Type: - return evaluateNew2( pd, code ); case TypeIdType: { /* Evaluate the expression. */ UniqueType *ut = typeRef->uniqueType; |