Skip to content

Commit 4a665fd

Browse files
graydonpcwalton
authored andcommitted
---
yaml --- r: 63443 b: refs/heads/snap-stage3 c: 6914ff9 h: refs/heads/master i: 63441: 57f2c7d 63439: 735f326 v: v3
1 parent d208fdf commit 4a665fd

File tree

20 files changed

+915
-996
lines changed

20 files changed

+915
-996
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: adff46250ed9e9b3c31da65b2997a5458e41305a
4+
refs/heads/snap-stage3: 6914ff9d0142a4b1e82f809ebb8de805d8319698
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/compiletest/procsrv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn target_env(lib_path: &str, prog: &str) -> ~[(~str,~str)] {
2323
assert!(prog.ends_with(".exe"));
2424
let aux_path = prog.slice(0u, prog.len() - 4u).to_owned() + ".libaux";
2525

26-
env = do env.map() |pair| {
26+
env = do vec::map(env) |pair| {
2727
let (k,v) = copy *pair;
2828
if k == ~"PATH" { (~"PATH", v + ";" + lib_path + ";" + aux_path) }
2929
else { (k,v) }

branches/snap-stage3/src/librustc/lib/llvm.rs

Lines changed: 2 additions & 203 deletions
Original file line numberDiff line numberDiff line change
@@ -224,50 +224,13 @@ pub type SectionIteratorRef = *SectionIterator_opaque;
224224
pub enum Pass_opaque {}
225225
pub type PassRef = *Pass_opaque;
226226

227-
pub mod debuginfo {
228-
use super::{ValueRef};
229-
230-
pub enum DIBuilder_opaque {}
231-
pub type DIBuilderRef = *DIBuilder_opaque;
232-
233-
pub type DIDescriptor = ValueRef;
234-
pub type DIScope = DIDescriptor;
235-
pub type DILocation = DIDescriptor;
236-
pub type DIFile = DIScope;
237-
pub type DILexicalBlock = DIScope;
238-
pub type DISubprogram = DIScope;
239-
pub type DIType = DIDescriptor;
240-
pub type DIBasicType = DIType;
241-
pub type DIDerivedType = DIType;
242-
pub type DICompositeType = DIDerivedType;
243-
pub type DIVariable = DIDescriptor;
244-
pub type DIArray = DIDescriptor;
245-
pub type DISubrange = DIDescriptor;
246-
247-
pub enum DIDescriptorFlags {
248-
FlagPrivate = 1 << 0,
249-
FlagProtected = 1 << 1,
250-
FlagFwdDecl = 1 << 2,
251-
FlagAppleBlock = 1 << 3,
252-
FlagBlockByrefStruct = 1 << 4,
253-
FlagVirtual = 1 << 5,
254-
FlagArtificial = 1 << 6,
255-
FlagExplicit = 1 << 7,
256-
FlagPrototyped = 1 << 8,
257-
FlagObjcClassComplete = 1 << 9,
258-
FlagObjectPointer = 1 << 10,
259-
FlagVector = 1 << 11,
260-
FlagStaticMember = 1 << 12
261-
}
262-
}
263-
264227
pub mod llvm {
265228
use super::{AtomicBinOp, AtomicOrdering, BasicBlockRef, ExecutionEngineRef};
266229
use super::{Bool, BuilderRef, ContextRef, MemoryBufferRef, ModuleRef};
267230
use super::{ObjectFileRef, Opcode, PassManagerRef, PassManagerBuilderRef};
268231
use super::{SectionIteratorRef, TargetDataRef, TypeKind, TypeRef, UseRef};
269-
use super::{ValueRef, PassRef};
270-
use super::debuginfo::*;
232+
use super::{ValueRef,PassRef};
233+
271234
use core::libc::{c_char, c_int, c_longlong, c_ushort, c_uint, c_ulonglong};
272235

273236
#[link_args = "-Lrustllvm -lrustllvm"]
@@ -966,12 +929,6 @@ pub mod llvm {
966929
#[fast_ffi]
967930
pub unsafe fn LLVMDeleteBasicBlock(BB: BasicBlockRef);
968931

969-
#[fast_ffi]
970-
pub unsafe fn LLVMMoveBasicBlockAfter(BB: BasicBlockRef, MoveAfter: BasicBlockRef);
971-
972-
#[fast_ffi]
973-
pub unsafe fn LLVMMoveBasicBlockBefore(BB: BasicBlockRef, MoveBefore: BasicBlockRef);
974-
975932
/* Operations on instructions */
976933
#[fast_ffi]
977934
pub unsafe fn LLVMGetInstructionParent(Inst: ValueRef)
@@ -1928,164 +1885,6 @@ pub mod llvm {
19281885
AlignStack: Bool, Dialect: c_uint)
19291886
-> ValueRef;
19301887

1931-
1932-
#[fast_ffi]
1933-
pub unsafe fn LLVMDIBuilderCreate(M: ModuleRef) -> DIBuilderRef;
1934-
1935-
#[fast_ffi]
1936-
pub unsafe fn LLVMDIBuilderDispose(Builder: DIBuilderRef);
1937-
1938-
#[fast_ffi]
1939-
pub unsafe fn LLVMDIBuilderFinalize(Builder: DIBuilderRef);
1940-
1941-
#[fast_ffi]
1942-
pub unsafe fn LLVMDIBuilderCreateCompileUnit(
1943-
Builder: DIBuilderRef,
1944-
Lang: c_uint,
1945-
File: *c_char,
1946-
Dir: *c_char,
1947-
Producer: *c_char,
1948-
isOptimized: bool,
1949-
Flags: *c_char,
1950-
RuntimeVer: c_uint,
1951-
SplitName: *c_char);
1952-
1953-
#[fast_ffi]
1954-
pub unsafe fn LLVMDIBuilderCreateFile(
1955-
Builder: DIBuilderRef,
1956-
Filename: *c_char,
1957-
Directory: *c_char) -> DIFile;
1958-
1959-
#[fast_ffi]
1960-
pub unsafe fn LLVMDIBuilderCreateSubroutineType(
1961-
Builder: DIBuilderRef,
1962-
File: DIFile,
1963-
ParameterTypes: DIArray) -> DICompositeType;
1964-
1965-
#[fast_ffi]
1966-
pub unsafe fn LLVMDIBuilderCreateFunction(
1967-
Builder: DIBuilderRef,
1968-
Scope: DIDescriptor,
1969-
Name: *c_char,
1970-
LinkageName: *c_char,
1971-
File: DIFile,
1972-
LineNo: c_uint,
1973-
Ty: DIType,
1974-
isLocalToUnit: bool,
1975-
isDefinition: bool,
1976-
ScopeLine: c_uint,
1977-
Flags: c_uint,
1978-
isOptimized: bool,
1979-
Fn: ValueRef,
1980-
TParam: ValueRef,
1981-
Decl: ValueRef) -> DISubprogram;
1982-
1983-
#[fast_ffi]
1984-
pub unsafe fn LLVMDIBuilderCreateBasicType(
1985-
Builder: DIBuilderRef,
1986-
Name: *c_char,
1987-
SizeInBits: c_ulonglong,
1988-
AlignInBits: c_ulonglong,
1989-
Encoding: c_uint) -> DIBasicType;
1990-
1991-
#[fast_ffi]
1992-
pub unsafe fn LLVMDIBuilderCreatePointerType(
1993-
Builder: DIBuilderRef,
1994-
PointeeTy: DIType,
1995-
SizeInBits: c_ulonglong,
1996-
AlignInBits: c_ulonglong,
1997-
Name: *c_char) -> DIDerivedType;
1998-
1999-
#[fast_ffi]
2000-
pub unsafe fn LLVMDIBuilderCreateStructType(
2001-
Builder: DIBuilderRef,
2002-
Scope: DIDescriptor,
2003-
Name: *c_char,
2004-
File: DIFile,
2005-
LineNumber: c_uint,
2006-
SizeInBits: c_ulonglong,
2007-
AlignInBits: c_ulonglong,
2008-
Flags: c_uint,
2009-
DerivedFrom: DIType,
2010-
Elements: DIArray,
2011-
RunTimeLang: c_uint,
2012-
VTableHolder: ValueRef) -> DICompositeType;
2013-
2014-
#[fast_ffi]
2015-
pub unsafe fn LLVMDIBuilderCreateMemberType(
2016-
Builder: DIBuilderRef,
2017-
Scope: DIDescriptor,
2018-
Name: *c_char,
2019-
File: DIFile,
2020-
LineNo: c_uint,
2021-
SizeInBits: c_ulonglong,
2022-
AlignInBits: c_ulonglong,
2023-
OffsetInBits: c_ulonglong,
2024-
Flags: c_uint,
2025-
Ty: DIType) -> DIDerivedType;
2026-
2027-
#[fast_ffi]
2028-
pub unsafe fn LLVMDIBuilderCreateLexicalBlock(
2029-
Builder: DIBuilderRef,
2030-
Scope: DIDescriptor,
2031-
File: DIFile,
2032-
Line: c_uint,
2033-
Col: c_uint) -> DILexicalBlock;
2034-
2035-
#[fast_ffi]
2036-
pub unsafe fn LLVMDIBuilderCreateLocalVariable(
2037-
Builder: DIBuilderRef,
2038-
Tag: c_uint,
2039-
Scope: DIDescriptor,
2040-
Name: *c_char,
2041-
File: DIFile,
2042-
LineNo: c_uint,
2043-
Ty: DIType,
2044-
AlwaysPreserve: bool,
2045-
Flags: c_uint,
2046-
ArgNo: c_uint) -> DIVariable;
2047-
2048-
#[fast_ffi]
2049-
pub unsafe fn LLVMDIBuilderCreateArrayType(
2050-
Builder: DIBuilderRef,
2051-
Size: c_ulonglong,
2052-
AlignInBits: c_ulonglong,
2053-
Ty: DIType,
2054-
Subscripts: DIArray) -> DIType;
2055-
2056-
#[fast_ffi]
2057-
pub unsafe fn LLVMDIBuilderCreateVectorType(
2058-
Builder: DIBuilderRef,
2059-
Size: c_ulonglong,
2060-
AlignInBits: c_ulonglong,
2061-
Ty: DIType,
2062-
Subscripts: DIArray) -> DIType;
2063-
2064-
#[fast_ffi]
2065-
pub unsafe fn LLVMDIBuilderGetOrCreateSubrange(
2066-
Builder: DIBuilderRef,
2067-
Lo: c_longlong,
2068-
Count: c_longlong) -> DISubrange;
2069-
2070-
#[fast_ffi]
2071-
pub unsafe fn LLVMDIBuilderGetOrCreateArray(
2072-
Builder: DIBuilderRef,
2073-
Ptr: *DIDescriptor,
2074-
Count: c_uint) -> DIArray;
2075-
2076-
#[fast_ffi]
2077-
pub unsafe fn LLVMDIBuilderInsertDeclareAtEnd(
2078-
Builder: DIBuilderRef,
2079-
Val: ValueRef,
2080-
VarInfo: DIVariable,
2081-
InsertAtEnd: BasicBlockRef) -> ValueRef;
2082-
2083-
#[fast_ffi]
2084-
pub unsafe fn LLVMDIBuilderInsertDeclareBefore(
2085-
Builder: DIBuilderRef,
2086-
Val: ValueRef,
2087-
VarInfo: DIVariable,
2088-
InsertBefore: ValueRef) -> ValueRef;
20891888
}
20901889
}
20911890

branches/snap-stage3/src/librustc/middle/borrowck/check_loans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ impl<'self> CheckLoanCtxt<'self> {
8282
//! are issued for future scopes and thus they may have been
8383
//! *issued* but not yet be in effect.
8484
85-
for self.dfcx_loans.each_bit_on_entry(scope_id) |loan_index| {
85+
for self.dfcx_loans.each_bit_on_entry_frozen(scope_id) |loan_index| {
8686
let loan = &self.all_loans[loan_index];
8787
if !op(loan) {
8888
return false;
@@ -134,7 +134,7 @@ impl<'self> CheckLoanCtxt<'self> {
134134
//! we encounter `scope_id`.
135135
136136
let mut result = ~[];
137-
for self.dfcx_loans.each_gen_bit(scope_id) |loan_index| {
137+
for self.dfcx_loans.each_gen_bit_frozen(scope_id) |loan_index| {
138138
result.push(loan_index);
139139
}
140140
return result;

branches/snap-stage3/src/librustc/middle/borrowck/move_data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ impl FlowedMoveData {
504504

505505
let opt_loan_path_index = self.move_data.existing_move_path(loan_path);
506506

507-
for self.dfcx_moves.each_bit_on_entry(id) |index| {
507+
for self.dfcx_moves.each_bit_on_entry_frozen(id) |index| {
508508
let move = &self.move_data.moves[index];
509509
let moved_path = move.path;
510510
if base_indices.contains(&moved_path) {
@@ -560,7 +560,7 @@ impl FlowedMoveData {
560560
}
561561
};
562562

563-
for self.dfcx_assign.each_bit_on_entry(id) |index| {
563+
for self.dfcx_assign.each_bit_on_entry_frozen(id) |index| {
564564
let assignment = &self.move_data.var_assignments[index];
565565
if assignment.path == loan_path_index && !f(assignment) {
566566
return false;

0 commit comments

Comments
 (0)