Resolve a reference to a global value.
(&self, gv: GlobalValue, loc: Location)
| 323 | |
| 324 | // Resolve a reference to a global value. |
| 325 | fn check_gv(&self, gv: GlobalValue, loc: Location) -> ParseResult<()> { |
| 326 | if !self.map.contains_gv(gv) { |
| 327 | err!(loc, "undefined global value {}", gv) |
| 328 | } else { |
| 329 | Ok(()) |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | // Allocate an alias region. |
| 334 | fn add_alias_region( |
no test coverage detected