Method
declare_data
(
&mut self,
name: &str,
linkage: Linkage,
writable: bool,
tls: bool,
)
Source from the content-addressed store, hash-verified
| 439 | } |
| 440 | |
| 441 | fn declare_data( |
| 442 | &mut self, |
| 443 | name: &str, |
| 444 | linkage: Linkage, |
| 445 | writable: bool, |
| 446 | tls: bool, |
| 447 | ) -> ModuleResult<DataId> { |
| 448 | assert!(!tls, "JIT doesn't yet support TLS"); |
| 449 | let (id, _linkage) = self |
| 450 | .declarations |
| 451 | .declare_data(name, linkage, writable, tls)?; |
| 452 | Ok(id) |
| 453 | } |
| 454 | |
| 455 | fn declare_anonymous_data(&mut self, writable: bool, tls: bool) -> ModuleResult<DataId> { |
| 456 | assert!(!tls, "JIT doesn't yet support TLS"); |