File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
branches/dist-snap/src/librustc/middle/trans Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9
- refs/heads/dist-snap: 5c9d7c2072ef93adf9912643d025e48ac832c3a6
9
+ refs/heads/dist-snap: 44557e7a3372556284ea8ee062a258b0d4377b86
10
10
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
11
11
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
12
12
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
Original file line number Diff line number Diff line change @@ -1859,6 +1859,10 @@ pub fn trans_closure(ccx: @mut CrateContext,
1859
1859
set_fixed_stack_segment ( fcx. llfn ) ;
1860
1860
}
1861
1861
1862
+ if ccx. sess . opts . debuginfo && fcx_has_nonzero_span ( fcx) {
1863
+ debuginfo:: create_function_metadata ( fcx) ;
1864
+ }
1865
+
1862
1866
// Create the first basic block in the function and keep a handle on it to
1863
1867
// pass to finish_fn later.
1864
1868
let bcx_top = fcx. entry_bcx . unwrap ( ) ;
@@ -1929,12 +1933,7 @@ pub fn trans_fn(ccx: @mut CrateContext,
1929
1933
id,
1930
1934
attrs,
1931
1935
output_type,
1932
- |fcx| {
1933
- if ccx. sess . opts . debuginfo
1934
- && fcx_has_nonzero_span ( fcx) {
1935
- debuginfo:: create_function_metadata ( fcx) ;
1936
- }
1937
- } ) ;
1936
+ |_fcx| { } ) ;
1938
1937
}
1939
1938
1940
1939
fn insert_synthetic_type_entries ( bcx : @mut Block ,
You can’t perform that action at this time.
0 commit comments