]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_ssa/traits/declare.rs
rustc_codegen_ssa: move debuginfo-related things to a new mir::debuginfo module.
[rust.git] / src / librustc_codegen_ssa / traits / declare.rs
index 624a982b619ee7b2d26f298779897df95c444b39..cd42044e48df8cf6d6c5cf0dfa458acc50c31b85 100644 (file)
@@ -17,13 +17,13 @@ pub trait DeclareMethods<'tcx>: BackendTypes {
     ///
     /// If there’s a value with the same name already declared, the function will
     /// update the declaration and return existing Value instead.
-    fn declare_cfn(&self, name: &str, fn_type: Self::Type) -> Self::Value;
+    fn declare_cfn(&self, name: &str, fn_type: Self::Type) -> Self::Function;
 
     /// Declare a Rust function.
     ///
     /// If there’s a value with the same name already declared, the function will
     /// update the declaration and return existing Value instead.
-    fn declare_fn(&self, name: &str, sig: ty::PolyFnSig<'tcx>) -> Self::Value;
+    fn declare_fn(&self, name: &str, sig: ty::PolyFnSig<'tcx>) -> Self::Function;
 
     /// Declare a global with an intention to define it.
     ///