Return the type of this global.
(&self, isa: &dyn TargetIsa)
| 94 | |
| 95 | /// Return the type of this global. |
| 96 | pub fn global_type(&self, isa: &dyn TargetIsa) -> Type { |
| 97 | match *self { |
| 98 | Self::VMContext { .. } | Self::Symbol { .. } => isa.pointer_type(), |
| 99 | Self::IAddImm { global_type, .. } | Self::Load { global_type, .. } => global_type, |
| 100 | Self::DynScaleTargetConst { .. } => isa.pointer_type(), |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | impl GlobalValueData { |
no test coverage detected