92de70b69a
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.
21 lines
495 B
C++
21 lines
495 B
C++
#ifndef NEWEXPRAST_H
|
|
#define NEWEXPRAST_H
|
|
|
|
#include "mem/slicc/ast/ExprAST.hh"
|
|
#include "mem/slicc/ast/TypeAST.hh"
|
|
#include "mem/slicc/symbols/Type.hh"
|
|
|
|
class NewExprAST : public ExprAST
|
|
{
|
|
public:
|
|
NewExprAST(TypeAST* type_ptr) : ExprAST() { m_type_ptr = type_ptr; }
|
|
Type* generate(string & code) const;
|
|
void print(ostream & out) const { out << "[NewExprAST: " << *m_type_ptr << "]"; }
|
|
string getName() const { return m_type_ptr->toString(); }
|
|
|
|
private:
|
|
TypeAST* m_type_ptr;
|
|
};
|
|
|
|
#endif
|