Make symbols store as RCs

This commit is contained in:
Brendan Hansknecht 2022-02-16 20:59:51 -08:00
parent d1bcc8d55b
commit 1153e0833b

View file

@ -42,7 +42,7 @@ struct StorageManager<
CC: CallConv<GeneralReg, FloatReg>, CC: CallConv<GeneralReg, FloatReg>,
> { > {
phantom_cc: PhantomData<CC>, phantom_cc: PhantomData<CC>,
symbol_storage_map: MutMap<Symbol, Storage<'a, GeneralReg, FloatReg>>, symbol_storage_map: MutMap<Symbol, Rc<Storage<'a, GeneralReg, FloatReg>>>,
// This should probably be smarter than a vec. // This should probably be smarter than a vec.
// There are certain registers we should always use first. With pushing and popping, this could get mixed. // There are certain registers we should always use first. With pushing and popping, this could get mixed.