From da1e84e33de1a9c2cc1745b8f42bc7f0cee8fc5c Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 9 Oct 2026 23:35:03 +0200 Subject: Add const sections --- boot/symbol.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'boot/symbol.cc') 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 info::is_constant() + { + return nullptr; + } + type_info::type_info(const type& symbol) : symbol(symbol), owner(symbol.get()) { @@ -362,6 +367,16 @@ namespace elna::boot return std::static_pointer_cast(shared_from_this()); } + constant_info::constant_info(const type& symbol, const constant_value& value) + : symbol(symbol), value(value) + { + } + + std::shared_ptr constant_info::is_constant() + { + return std::static_pointer_cast(shared_from_this()); + } + label_info::label_info(std::size_t defer_depth) : defer_depth(defer_depth) { -- cgit v1.2.3