Support 128-bit enum variant in debuginfo codegen

This commit is contained in:
DonoughLiu 2023-06-10 03:21:39 +08:00
parent 8430ec5e50
commit 9176f51a9b

View File

@ -108,6 +108,10 @@ fn const_u64(&self, i: u64) -> RValue<'gcc> {
self.const_uint(self.type_u64(), i)
}
fn const_u128(&self, i: u128) -> RValue<'gcc> {
self.const_uint_big(self.type_u128(), i)
}
fn const_usize(&self, i: u64) -> RValue<'gcc> {
let bit_size = self.data_layout().pointer_size.bits();
if bit_size < 64 {