summaryrefslogtreecommitdiff
path: root/Driver.hh
diff options
context:
space:
mode:
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