diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-10-09 23:35:03 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-10-09 23:35:03 +0200 |
| commit | da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c (patch) | |
| tree | 6222ecd61c9d6e9d59c6169b99e4a24a5d347fea /boot/symbol.cc | |
| parent | 134d3ac4caff6d87c79b0892e57073594cb0064c (diff) | |
| download | elna-da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c.tar.gz | |
Add const sections
Diffstat (limited to 'boot/symbol.cc')
| -rw-r--r-- | boot/symbol.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boot/symbol.cc b/boot/symbol.cc index ffefea4..8feba4a 100644 --- a/boot/symbol.cc +++ b/boot/symbol.cc @@ -326,6 +326,11 @@ namespace elna::boot return nullptr; } + std::shared_ptr<constant_info> info::is_constant() + { + return nullptr; + } + type_info::type_info(const type& symbol) : symbol(symbol), owner(symbol.get<alias_type>()) { @@ -362,6 +367,16 @@ namespace elna::boot return std::static_pointer_cast<variable_info>(shared_from_this()); } + constant_info::constant_info(const type& symbol, const constant_value& value) + : symbol(symbol), value(value) + { + } + + std::shared_ptr<constant_info> constant_info::is_constant() + { + return std::static_pointer_cast<constant_info>(shared_from_this()); + } + label_info::label_info(std::size_t defer_depth) : defer_depth(defer_depth) { |
