/// Keep dynamically allocated PartialMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
- mutable DenseMap<unsigned, PartialMapping *> MapOfPartialMappings;
+ mutable DenseMap<unsigned, const PartialMapping *> MapOfPartialMappings;
/// Keep dynamically allocated ValueMapping in a separate map.
/// This shouldn't be needed when everything gets TableGen'ed.
- mutable DenseMap<unsigned, ValueMapping *> MapOfValueMappings;
+ mutable DenseMap<unsigned, const ValueMapping *> MapOfValueMappings;
/// Create a RegisterBankInfo that can accomodate up to \p NumRegBanks
/// RegisterBank instances.
++NumPartialMappingsCreated;
- PartialMapping *&PartMapping = MapOfPartialMappings[Hash];
+ const PartialMapping *&PartMapping = MapOfPartialMappings[Hash];
PartMapping = new PartialMapping{StartIdx, Length, RegBank};
return *PartMapping;
}
++NumValueMappingsCreated;
- ValueMapping *&ValMapping = MapOfValueMappings[Hash];
+ const ValueMapping *&ValMapping = MapOfValueMappings[Hash];
ValMapping = new ValueMapping{BreakDown, NumBreakDowns};
return *ValMapping;
}