]> git.lizzy.rs Git - rust.git/commit
auto merge of #9517 : crabtw/rust/cabi, r=nikomatsakis
authorbors <bors@rust-lang.org>
Fri, 11 Oct 2013 02:56:22 +0000 (19:56 -0700)
committerbors <bors@rust-lang.org>
Fri, 11 Oct 2013 02:56:22 +0000 (19:56 -0700)
commit0daced63fc1a4f153e77c55cb6c1a2d02d3bb6bd
tree3496d7d393ad27ff6a6904b7cbdd9bfd859daeb3
parentafa42a02379637fb621ffb2f6618344aaabadfcb
parent95fc31ae9bf8e9f859e6a7ceb43d645ebef33905
auto merge of #9517 : crabtw/rust/cabi, r=nikomatsakis

I borrow some ideas from clang's ABIInfo.h and TargetInfo.cpp.
LLVMType is replaced with ArgType, which is similar to clang's ABIArgInfo,
and I also merge attrs of FnType into it.

Now ABI implementation doesn't need to insert hidden return pointer
to arg_tys of FnType. Instead it is handled in foreign.rs.

This change also fixes LLVM assertion failure when compiling MIPS target.