diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-12 20:27:49 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-12 20:27:49 +0800 |
| commit | 61d670dda6f95aa414b4ea4a7dcaba25890b9e6b (patch) | |
| tree | 29d0b10fb2558a99ff45c27587abd2f09ca718b5 /Driver.hh | |
| parent | f146dac784325c9403499046f52f70e3596ae345 (diff) | |
add Location class
Diffstat (limited to 'Driver.hh')
| -rw-r--r-- | Driver.hh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,6 +4,7 @@ #include <cstdio> #include "Context.hh" +#include "Location.hh" #include "Parser.hh" #define YY_DECL pcc::Parser::symbol_type yylex(pcc::Driver& driver) @@ -15,11 +16,12 @@ class Driver { public: Driver(Context* context); ~Driver(); - int StartLexer(const std::string& filename); + int StartLexer(std::string& filename); void StopLexer(); - void Parse(const std::string& filename); + void Parse(std::string& filename); llvm::Module* GetModule(); llvm::IRBuilder<>* GetBuilder(); + Location location_; Context* context_; }; |
