summaryrefslogtreecommitdiff
path: root/src/trans/codegen.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-02-11 14:39:12 +0800
committerJohn Hodge <tpg@mutabah.net>2017-02-11 14:39:12 +0800
commite493be82bb9824a9bd1332cb7aeee1f3cf9e57d3 (patch)
treee1acba7e16dfb79501d9dbf0778402923798ee26 /src/trans/codegen.hpp
parente0d43fb38d1b13e8ed5ee3e2fd7ddd8023319cbb (diff)
downloadmrust-e493be82bb9824a9bd1332cb7aeee1f3cf9e57d3.tar.gz
Trans - Allow passing library directories from command line
Diffstat (limited to 'src/trans/codegen.hpp')
-rw-r--r--src/trans/codegen.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/trans/codegen.hpp b/src/trans/codegen.hpp
index 040449bf..3e936361 100644
--- a/src/trans/codegen.hpp
+++ b/src/trans/codegen.hpp
@@ -8,6 +8,7 @@
#pragma once
#include "trans_list.hpp"
+#include "main_bindings.hpp" // TransOptions
namespace HIR {
class TypeRef;
@@ -26,7 +27,7 @@ class CodeGenerator
{
public:
virtual ~CodeGenerator() {}
- virtual void finalise(bool is_executable) {}
+ virtual void finalise(bool is_executable, const TransOptions& opt) {}
// Called on all types directly mentioned (e.g. variables, arguments, and fields)
// - Inner-most types are visited first.