]> git.lizzy.rs Git - rust.git/commit
rustc: Fix support for LLVM 3.3
authorAlex Crichton <alex@alexcrichton.com>
Wed, 5 Mar 2014 23:14:16 +0000 (15:14 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 6 Mar 2014 02:05:05 +0000 (18:05 -0800)
commit93964525922f5b13cbc3b0a28175082acf50f587
treeb9949f4bde026f500bbb08e709fcb0959c7ede50
parent8a55cd988f272ec70fc7d5adf6e61ed8ee6a8e78
rustc: Fix support for LLVM 3.3

The llvm.copysign and llvm.round intrinsics weren't added until LLVM 3.4, so if
we're on LLVM 3.3 we lower these to calls in libm instead of LLVM intrinsics.

This should fix our travis failures.
src/librustc/lib/llvm.rs
src/librustc/middle/trans/base.rs
src/rustllvm/RustWrapper.cpp