Make global scope a class.
This commit is contained in:
parent
127f51041b
commit
a5597aeae0
|
@ -40,11 +40,13 @@ struct global_constructor {
|
||||||
|
|
||||||
using global_constructor_ptr = std::unique_ptr<global_constructor>;
|
using global_constructor_ptr = std::unique_ptr<global_constructor>;
|
||||||
|
|
||||||
struct global_scope {
|
class global_scope {
|
||||||
|
private:
|
||||||
std::vector<global_function_ptr> functions;
|
std::vector<global_function_ptr> functions;
|
||||||
std::vector<global_constructor_ptr> constructors;
|
std::vector<global_constructor_ptr> constructors;
|
||||||
mangler* mng;
|
mangler* mng;
|
||||||
|
|
||||||
|
public:
|
||||||
global_scope(mangler& m) : mng(&m) {}
|
global_scope(mangler& m) : mng(&m) {}
|
||||||
|
|
||||||
global_function& add_function(
|
global_function& add_function(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user