diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-08-28 17:50:57 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:11:59 +0200 |
| commit | d3258448045d672b0cd273cb1ea9381b470c2ca2 (patch) | |
| tree | 8c4b20fa7ddb041ede6b9040ee11eeb91f721980 /src/librustc_codegen_llvm/debuginfo/source_loc.rs | |
| parent | 8714e6bce6b04482723f0b735879533c82c114fa (diff) | |
| download | rust-d3258448045d672b0cd273cb1ea9381b470c2ca2.tar.gz rust-d3258448045d672b0cd273cb1ea9381b470c2ca2.zip | |
Replaced Codegen field access by trait method
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/source_loc.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/source_loc.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/source_loc.rs b/src/librustc_codegen_llvm/debuginfo/source_loc.rs index 8785ecfa05b..96d22ea1d15 100644 --- a/src/librustc_codegen_llvm/debuginfo/source_loc.rs +++ b/src/librustc_codegen_llvm/debuginfo/source_loc.rs @@ -42,7 +42,7 @@ pub fn set_source_location( let dbg_loc = if function_debug_context.source_locations_enabled.get() { debug!("set_source_location: {}", bx.sess().source_map().span_to_string(span)); - let loc = span_start(bx.cx, span); + let loc = span_start(bx.cx(), span); InternalDebugLocation::new(scope.unwrap(), loc.line, loc.col.to_usize()) } else { UnknownLocation @@ -88,7 +88,7 @@ pub fn set_debug_location( // For MSVC, set the column number to zero. // Otherwise, emit it. This mimics clang behaviour. // See discussion in https://github.com/rust-lang/rust/issues/42921 - let col_used = if bx.cx.sess().target.target.options.is_like_msvc { + let col_used = if bx.cx().sess().target.target.options.is_like_msvc { UNKNOWN_COLUMN_NUMBER } else { col as c_uint @@ -97,7 +97,7 @@ pub fn set_debug_location( unsafe { Some(llvm::LLVMRustDIBuilderCreateDebugLocation( - debug_context(bx.cx).llcontext, + debug_context(bx.cx()).llcontext, line as c_uint, col_used, scope, |
