gem5/src/mem/slicc/ast/NewExprAST.cc
Nathan Binkert 92de70b69a ruby: Import the latest ruby changes from gems.
This was done with an automated process, so there could be things that were
done in this tree in the past that didn't make it.  One known regression
is that atomic memory operations do not seem to work properly anymore.
2009-07-06 15:49:47 -07:00

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;
}