summaryrefslogtreecommitdiff
path: root/Driver.hh
diff options
context:
space:
mode:
authorNagi5Yeq <wu@x-nagi.com>2020-05-15 21:16:26 +0800
committerNagi5Yeq <wu@x-nagi.com>2020-05-15 21:16:26 +0800
commit41f6e75e3f26bdcccfcb3910f202452e14653826 (patch)
tree0076a928d4ac9737f8b83b7b6b0c055e5ff4f46a /Driver.hh
parentd80958f987790f533f5048c2e0e8a1cd5fd9f5a1 (diff)
basic support of types
Diffstat (limited to 'Driver.hh')
-rw-r--r--Driver.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/Driver.hh b/Driver.hh
index 5f0d18d..d3e773d 100644
--- a/Driver.hh
+++ b/Driver.hh
@@ -9,16 +9,15 @@
namespace pcc {
class Driver {
public:
- Driver(Context* context);
+ Driver(const char* name);
~Driver();
int StartLexer(std::string& filename);
void StopLexer();
void Parse(std::string& filename);
- llvm::Module* GetModule();
- llvm::IRBuilder<>* GetBuilder();
Location location_;
- Context* context_;
+ private:
+ Context context_;
};
} // namespace pcc