(&self, ty: &'ll Type, elts: &[&'ll Value])
| 35 | |
| 36 | impl<'ll, 'tcx> CodegenCx<'ll, 'tcx> { |
| 37 | pub fn const_array(&self, ty: &'ll Type, elts: &[&'ll Value]) -> &'ll Value { |
| 38 | unsafe { llvm::LLVMConstArray(ty, elts.as_ptr(), elts.len() as c_uint) } |
| 39 | } |
| 40 | |
| 41 | pub fn const_bytes(&self, bytes: &[u8]) -> &'ll Value { |
| 42 | bytes_in_context(self.llcx, bytes) |
no test coverage detected