TERRIBLE HACK to support x86 compilation

This commit is contained in:
Ayaz Hafiz 2023-06-15 15:04:43 -05:00 committed by Ayaz Hafiz
parent 5488b3a3eb
commit 2294f6994f
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
5 changed files with 149 additions and 16 deletions

View file

@ -207,6 +207,11 @@ pub trait LayoutInterner<'a>: Sized {
.alignment_bytes(self, self.target_info())
}
fn alignment_bytes_for_llvm(&self, layout: InLayout<'a>) -> u32 {
self.get_repr(layout)
.alignment_bytes_for_llvm(self, self.target_info())
}
fn allocation_alignment_bytes(&self, layout: InLayout<'a>) -> u32 {
self.get_repr(layout)
.allocation_alignment_bytes(self, self.target_info())