summaryrefslogtreecommitdiff
path: root/Driver.hh
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-12 20:27:49 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-12 20:27:49 +0800
commit61d670dda6f95aa414b4ea4a7dcaba25890b9e6b (patch)
tree29d0b10fb2558a99ff45c27587abd2f09ca718b5 /Driver.hh
parentf146dac784325c9403499046f52f70e3596ae345 (diff)
add Location class
Diffstat (limited to 'Driver.hh')
-rw-r--r--Driver.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/Driver.hh b/Driver.hh
index 5fc5d83..042db1f 100644
--- a/Driver.hh
+++ b/Driver.hh
@@ -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_;
};