]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_codegen_llvm/lib.rs
Prefixed const methods with "const" instead of "c"
[rust.git] / src / librustc_codegen_llvm / lib.rs
index 4e80fe0b343db9f62ba9266c9fd7cbfeebea95dc..f3dc9ca0002215c83adfc93ba4ced6c4c7f453d7 100644 (file)
@@ -364,17 +364,17 @@ fn val_ty(&self, v: &'ll Value) -> &'ll Type {
         common::val_ty(v)
     }
 
-    fn c_bytes_in_context(&self, llcx: &'ll llvm::Context, bytes: &[u8]) -> &'ll Value {
-        common::c_bytes_in_context(llcx, bytes)
+    fn const_bytes_in_context(&self, llcx: &'ll llvm::Context, bytes: &[u8]) -> &'ll Value {
+        common::const_bytes_in_context(llcx, bytes)
     }
 
-    fn c_struct_in_context(
+    fn const_struct_in_context(
         &self,
         llcx: &'a llvm::Context,
         elts: &[&'a Value],
         packed: bool,
     ) -> &'a Value {
-        common::c_struct_in_context(llcx, elts, packed)
+        common::const_struct_in_context(llcx, elts, packed)
     }
 }