about summary refs log tree commit diff
path: root/src/librustc_codegen_ssa/traits
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-10-29 18:39:54 +0200
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-12-03 15:28:18 +0200
commitdb477af9ade518d5d756daf20c647095a1f4af23 (patch)
treeafa061807c15346c1f589608bfea2984adb3ba44 /src/librustc_codegen_ssa/traits
parent6a75768b33b10fde649f0dcab6ff72a7dd62b561 (diff)
downloadrust-db477af9ade518d5d756daf20c647095a1f4af23.tar.gz
rust-db477af9ade518d5d756daf20c647095a1f4af23.zip
rustc_codegen_ssa: remove define_fn and define_internal_fn.
Diffstat (limited to 'src/librustc_codegen_ssa/traits')
-rw-r--r--src/librustc_codegen_ssa/traits/declare.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/librustc_codegen_ssa/traits/declare.rs b/src/librustc_codegen_ssa/traits/declare.rs
index cd42044e48d..e6cb82c8229 100644
--- a/src/librustc_codegen_ssa/traits/declare.rs
+++ b/src/librustc_codegen_ssa/traits/declare.rs
@@ -38,20 +38,6 @@ pub trait DeclareMethods<'tcx>: BackendTypes {
     /// Use this function when you intend to define a global without a name.
     fn define_private_global(&self, ty: Self::Type) -> Self::Value;
 
-    /// Declare a Rust function with an intention to define it.
-    ///
-    /// Use this function when you intend to define a function. This function will
-    /// return panic if the name already has a definition associated with it. This
-    /// can happen with #[no_mangle] or #[export_name], for example.
-    fn define_fn(&self, name: &str, fn_sig: ty::PolyFnSig<'tcx>) -> Self::Value;
-
-    /// Declare a Rust function with an intention to define it.
-    ///
-    /// Use this function when you intend to define a function. This function will
-    /// return panic if the name already has a definition associated with it. This
-    /// can happen with #[no_mangle] or #[export_name], for example.
-    fn define_internal_fn(&self, name: &str, fn_sig: ty::PolyFnSig<'tcx>) -> Self::Value;
-
     /// Gets declared value by name.
     fn get_declared_value(&self, name: &str) -> Option<Self::Value>;