Id's for Stmt-inherited classes

This commit is contained in:
Anton Mitrokhin
2015-07-09 14:45:33 +03:00
parent 26a93bc733
commit 8217448ee5
6 changed files with 82 additions and 36 deletions

4
stmt.h
View File

@@ -48,7 +48,7 @@
*/
class Stmt : public ASTNode {
public:
Stmt(SourcePos p) : ASTNode(p) { }
Stmt(SourcePos p, unsigned scid) : ASTNode(p, scid) { }
/** Emit LLVM IR for the statement, using the FunctionEmitContext to create the
necessary instructions.
@@ -411,7 +411,7 @@ public:
*/
class StmtList : public Stmt {
public:
StmtList(SourcePos p) : Stmt(p) { }
StmtList(SourcePos p) : Stmt(p, StmtListID) { }
void EmitCode(FunctionEmitContext *ctx) const;
void Print(int indent) const;