Skip to content

Commit bdad629

Browse files
committed
---
yaml --- r: 152483 b: refs/heads/try2 c: 5d9bceb h: refs/heads/master i: 152481: 88506b4 152479: 1d3ab9d v: v3
1 parent 05ce45a commit bdad629

File tree

7 files changed

+732
-147
lines changed

7 files changed

+732
-147
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 8c057984c6d9244e2542759602c65a7930dfd6f1
8+
refs/heads/try2: 5d9bceb1440b6bb5759bc3c1e5ad2170a199d0ce
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/librustc/lib/llvm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1809,6 +1809,7 @@ pub mod llvm {
18091809
pub fn LLVMRustDestroyArchive(AR: ArchiveRef);
18101810

18111811
pub fn LLVMRustSetDLLExportStorageClass(V: ValueRef);
1812+
pub fn LLVMVersionMajor() -> c_int;
18121813
pub fn LLVMVersionMinor() -> c_int;
18131814

18141815
pub fn LLVMRustGetSectionName(SI: SectionIteratorRef,

branches/try2/src/librustc/middle/trans/debuginfo.rs

Lines changed: 672 additions & 143 deletions
Large diffs are not rendered by default.

branches/try2/src/libstd/rand/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ use std::rand;
6060
use std::rand::Rng;
6161
6262
let mut rng = rand::task_rng();
63-
if rng.gen() { // bool
63+
if rng.gen() { // random bool
6464
println!("int: {}, uint: {}", rng.gen::<int>(), rng.gen::<uint>())
6565
}
6666
```

branches/try2/src/rustllvm/RustWrapper.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateStructType(
318318
unwrapDI<DIArray>(Elements),
319319
RunTimeLang,
320320
unwrapDI<DIType>(VTableHolder)
321-
#if LLVM_VERSION_MINOR >= 5
321+
#if LLVM_VERSION_MINOR >= 4
322322
,UniqueId
323323
#endif
324324
));
@@ -510,7 +510,7 @@ extern "C" LLVMValueRef LLVMDIBuilderCreateUnionType(
510510
Flags,
511511
unwrapDI<DIArray>(Elements),
512512
RunTimeLang
513-
#if LLVM_VERSION_MINOR >= 5
513+
#if LLVM_VERSION_MINOR >= 4
514514
,UniqueId
515515
#endif
516516
));
@@ -734,6 +734,11 @@ LLVMVersionMinor() {
734734
return LLVM_VERSION_MINOR;
735735
}
736736

737+
extern "C" int
738+
LLVMVersionMajor() {
739+
return LLVM_VERSION_MAJOR;
740+
}
741+
737742
// Note that the two following functions look quite similar to the
738743
// LLVMGetSectionName function. Sadly, it appears that this function only
739744
// returns a char* pointer, which isn't guaranteed to be null-terminated. The
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// no-prefer-dynamic
12+
#![crate_type = "rlib"]
13+
// compile-flags:-g
14+
15+
struct S1;
16+
17+
impl S1 {
18+
fn f(&mut self) { }
19+
}
20+
21+
22+
struct S2;
23+
24+
impl S2 {
25+
fn f(&mut self) { }
26+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
// ignore-android: FIXME(#10381)
12+
13+
// aux-build:cross_crate_debuginfo_type_uniquing.rs
14+
extern crate cross_crate_debuginfo_type_uniquing;
15+
16+
// no-prefer-dynamic
17+
// compile-flags:-g -Zlto
18+
19+
pub struct C;
20+
pub fn p() -> C {
21+
C
22+
}
23+
24+
fn main() { }

0 commit comments

Comments
 (0)