| 171 | self.target_mode |
| 172 | } |
| 173 | |
| 174 | pub fn set_target_mode(&mut self, mode: TargetMode) { |
| 175 | self.target_mode = mode; |
| 176 | } |
| 177 | |
| 178 | pub fn set_entry_point(&mut self, entry: Option<String>) { |
| 179 | self.entry_point = entry; |
| 180 | } |
| 181 | |
| 182 | pub fn set_link_layout(&mut self, layout: Option<LinkLayout>) { |
| 183 | self.link_layout = layout; |
| 184 | } |
| 185 | |
| 186 | pub fn set_run_semantic_analysis(&mut self, enabled: bool) { |
| 187 | self.run_semantic_analysis = enabled; |
| 188 | } |
| 189 | |
| 190 | pub fn set_string_prefix(&mut self, prefix: Option<String>) { |
| 191 | self.string_prefix = prefix; |
| 192 | } |
| 193 | |
| 194 | pub fn set_type_prelude(&mut self, types: Vec<(String, IrType)>) { |
| 195 | self.type_prelude = types; |
| 196 | } |
| 197 | |
| 198 | /// Set HLL source prepended to every compiled unit (e.g. the kernel `layout.hll`), |
| 199 | /// so consts and structs stay defined once in HLL across separately-compiled TUs. |
| 200 | pub fn set_source_prelude(&mut self, src: impl Into<String>) { |
| 201 | self.source_prelude = src.into(); |
nothing calls this directly
no outgoing calls
no test coverage detected