Skip to content

Commit 3c16693

Browse files
committed
rustc: Add LLVM bindings for more alignment-related functions
1 parent 597d9b4 commit 3c16693

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/rustc/lib/llvm.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,16 @@ native mod llvm {
766766
fn LLVMAddTargetData(TD: TargetDataRef, PM: PassManagerRef);
767767
/** Returns the size of a type. FIXME: rv is actually a C_Ulonglong! */
768768
fn LLVMStoreSizeOfType(TD: TargetDataRef, Ty: TypeRef) -> c_uint;
769-
/** Returns the alignment of a type. */
769+
/** Returns the preferred alignment of a type. */
770770
fn LLVMPreferredAlignmentOfType(TD: TargetDataRef,
771771
Ty: TypeRef) -> c_uint;
772+
/** Returns the minimum alignment of a type. */
773+
fn LLVMABIAlignmentOfType(TD: TargetDataRef,
774+
Ty: TypeRef) -> c_uint;
775+
/** Returns the minimum alignment of a type when part of a call frame. */
776+
fn LLVMCallFrameAlignmentOfType(TD: TargetDataRef,
777+
Ty: TypeRef) -> c_uint;
778+
772779
/** Disposes target data. */
773780
fn LLVMDisposeTargetData(TD: TargetDataRef);
774781

0 commit comments

Comments
 (0)