File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
branches/try/src/rustc/middle/trans Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
- refs/heads/try: 43751e45d90ed3a2f5a9d0208d50125d88af6dfc
5
+ refs/heads/try: 1c46ee34beb7149b8a8b167340acf9fb7a12cd2e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
Original file line number Diff line number Diff line change @@ -637,6 +637,12 @@ fn llalign_of_pref(cx: @crate_ctxt, t: TypeRef) -> uint {
637
637
ret llvm:: LLVMPreferredAlignmentOfType ( cx. td . lltd , t) as uint ;
638
638
}
639
639
640
+ // Returns the minimum alignment of a type required by the plattform.
641
+ // This is the alignment that will be used for struct fields.
642
+ fn llalign_of_min ( cx : @crate_ctxt , t : TypeRef ) -> uint {
643
+ ret llvm:: LLVMABIAlignmentOfType ( cx. td . lltd , t) as uint ;
644
+ }
645
+
640
646
fn llsize_of ( cx : @crate_ctxt , t : TypeRef ) -> ValueRef {
641
647
ret llvm:: LLVMConstIntCast ( lib:: llvm:: llvm:: LLVMSizeOf ( t) , cx. int_type ,
642
648
False ) ;
You can’t perform that action at this time.
0 commit comments