about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/debuginfo
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2018-11-29 08:09:28 -0500
committerCorey Farwell <coreyf@rwell.org>2018-11-29 08:09:28 -0500
commit2a91bbac5d04273b217170f4ad5eebe02ffcb1af (patch)
tree3142e916e0e715ecb4f39c20265ee5fc47f64227 /src/librustc_codegen_llvm/debuginfo
parente9bca7a993d740291568c57eeef797b175c591cf (diff)
downloadrust-2a91bbac5d04273b217170f4ad5eebe02ffcb1af.tar.gz
rust-2a91bbac5d04273b217170f4ad5eebe02ffcb1af.zip
Rename conversion util; remove duplicate util in librustc_codegen_llvm.
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo')
-rw-r--r--src/librustc_codegen_llvm/debuginfo/metadata.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/metadata.rs b/src/librustc_codegen_llvm/debuginfo/metadata.rs
index 81f2769800d..47e92fbe87d 100644
--- a/src/librustc_codegen_llvm/debuginfo/metadata.rs
+++ b/src/librustc_codegen_llvm/debuginfo/metadata.rs
@@ -39,7 +39,7 @@ use rustc::ty::layout::{self, Align, HasDataLayout, Integer, IntegerExt, LayoutO
                         PrimitiveExt, Size, TyLayout};
 use rustc::session::config;
 use rustc::util::nodemap::FxHashMap;
-use rustc_fs_util::path2cstr;
+use rustc_fs_util::path_to_c_string;
 use rustc_data_structures::small_c_str::SmallCStr;
 
 use libc::{c_uint, c_longlong};
@@ -892,7 +892,7 @@ pub fn compile_unit_metadata(tcx: TyCtxt,
     };
 
     fn path_to_mdstring(llcx: &'ll llvm::Context, path: &Path) -> &'ll Value {
-        let path_str = path2cstr(path);
+        let path_str = path_to_c_string(path);
         unsafe {
             llvm::LLVMMDStringInContext(llcx,
                                         path_str.as_ptr(),