10 lines
184 B
C++
10 lines
184 B
C++
|
|
||
|
#include "mem/slicc/ast/NewExprAST.hh"
|
||
|
|
||
|
Type* NewExprAST::generate(string & code) const
|
||
|
{
|
||
|
Type* type = m_type_ptr->lookupType();
|
||
|
code += "new " + type->cIdent();
|
||
|
return type;
|
||
|
}
|