Skip to content

Commit 9e20849

Browse files
committed
---
yaml --- r: 4175 b: refs/heads/master c: 2593c50 h: refs/heads/master i: 4173: 6aa2a2a 4171: 014aba3 4167: b30d8de 4159: 72678da v: v3
1 parent ad75b3f commit 9e20849

File tree

4 files changed

+21
-17
lines changed

4 files changed

+21
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0334faef1fd37dd6f358984904d0772bcf70e4c6
2+
refs/heads/master: 2593c50e7526a2b78690dba10247a419ab4d3163

trunk/src/comp/lib/llvm.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,8 +1554,8 @@ fn fn_ty_param_tys(fn_ty: TypeRef) -> TypeRef[] {
15541554

15551555
/* Memory-managed interface to target data. */
15561556

1557-
obj target_data_dtor(TD: TargetDataRef)
1558-
{drop { llvm::LLVMDisposeTargetData(TD); }
1557+
obj target_data_dtor(TD: TargetDataRef) {
1558+
drop { llvm::LLVMDisposeTargetData(TD); }
15591559
}
15601560

15611561
type target_data = {lltd: TargetDataRef, dtor: target_data_dtor};
@@ -1567,8 +1567,8 @@ fn mk_target_data(string_rep: str) -> target_data {
15671567

15681568
/* Memory-managed interface to pass managers. */
15691569

1570-
obj pass_manager_dtor(PM: PassManagerRef)
1571-
{drop { llvm::LLVMDisposePassManager(PM); }
1570+
obj pass_manager_dtor(PM: PassManagerRef) {
1571+
drop { llvm::LLVMDisposePassManager(PM); }
15721572
}
15731573

15741574
type pass_manager = {llpm: PassManagerRef, dtor: pass_manager_dtor};
@@ -1580,8 +1580,8 @@ fn mk_pass_manager() -> pass_manager {
15801580

15811581
/* Memory-managed interface to object files. */
15821582

1583-
obj object_file_dtor(ObjectFile: ObjectFileRef)
1584-
{drop { llvm::LLVMDisposeObjectFile(ObjectFile); }
1583+
obj object_file_dtor(ObjectFile: ObjectFileRef) {
1584+
drop { llvm::LLVMDisposeObjectFile(ObjectFile); }
15851585
}
15861586

15871587
type object_file = {llof: ObjectFileRef, dtor: object_file_dtor};
@@ -1593,8 +1593,8 @@ fn mk_object_file(llmb: MemoryBufferRef) -> object_file {
15931593

15941594
/* Memory-managed interface to section iterators. */
15951595

1596-
obj section_iter_dtor(SI: SectionIteratorRef)
1597-
{drop { llvm::LLVMDisposeSectionIterator(SI); }
1596+
obj section_iter_dtor(SI: SectionIteratorRef) {
1597+
drop { llvm::LLVMDisposeSectionIterator(SI); }
15981598
}
15991599

16001600
type section_iter = {llsi: SectionIteratorRef, dtor: section_iter_dtor};

trunk/src/lib/io.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ obj FILE_buf_reader(f: os::libc::FILE, must_close: bool) {
7070
}
7171
fn tell() -> uint {
7272
ret os::libc::ftell(f) as uint;
73-
}drop { if must_close { os::libc::fclose(f); } }
73+
}
74+
drop { if must_close { os::libc::fclose(f); } }
7475
}
7576

7677

@@ -248,7 +249,8 @@ obj FILE_writer(f: os::libc::FILE, must_close: bool) {
248249
}
249250
fn tell() -> uint {
250251
ret os::libc::ftell(f) as uint;
251-
}drop { if must_close { os::libc::fclose(f); } }
252+
}
253+
drop { if must_close { os::libc::fclose(f); } }
252254
}
253255

254256
obj fd_buf_writer(fd: int, must_close: bool) {
@@ -274,7 +276,8 @@ obj fd_buf_writer(fd: int, must_close: bool) {
274276
fn tell() -> uint {
275277
log_err "need 64-bit native calls for tell, sorry";
276278
fail;
277-
}drop { if must_close { os::libc::close(fd); } }
279+
}
280+
drop { if must_close { os::libc::close(fd); } }
278281
}
279282

280283
fn file_buf_writer(path: str, flags: vec[fileflag]) -> buf_writer {

trunk/src/lib/run_program.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,12 @@ fn start_program(prog: str, args: vec[str]) -> @program {
7373
finished = true;
7474
self.close_input();
7575
ret os::waitpid(pid);
76-
}drop {
77-
self.close_input();
78-
if !finished { os::waitpid(pid); }
79-
os::libc::fclose(out_file);
80-
}
76+
}
77+
drop {
78+
self.close_input();
79+
if !finished { os::waitpid(pid); }
80+
os::libc::fclose(out_file);
81+
}
8182
}
8283
ret @new_program(pid, pipe_input.out, os::fd_FILE(pipe_output.in), false);
8384
}

0 commit comments

Comments
 (0)