diff options
Diffstat (limited to 'include/cps/AST.h')
| -rw-r--r-- | include/cps/AST.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/cps/AST.h b/include/cps/AST.h index 8c8c3be..2b78aaa 100644 --- a/include/cps/AST.h +++ b/include/cps/AST.h @@ -107,6 +107,14 @@ public: const std::string &getPath() const { return Path; } }; +// INCLUDE_OBJ "path" adds an object file (or the built-in "__libc") to the link. +class IncludeObjStmtAST : public StmtAST { + std::string Path; +public: + explicit IncludeObjStmtAST(std::string Path) : Path(std::move(Path)) {} + const std::string &getPath() const { return Path; } +}; + class GlobalBlockAST : public StmtAST { std::vector<std::unique_ptr<StmtAST>> Body; public: |
