(&mut self, ty: &'ll Type, align: Align)
| 452 | } |
| 453 | |
| 454 | fn dynamic_alloca(&mut self, ty: &'ll Type, align: Align) -> &'ll Value { |
| 455 | trace!("Dynamic Alloca `{:?}`", ty); |
| 456 | unsafe { |
| 457 | let alloca = llvm::LLVMBuildAlloca(self.llbuilder, ty, unnamed()); |
| 458 | llvm::LLVMSetAlignment(alloca, align.bytes() as c_uint); |
| 459 | alloca |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | fn array_alloca(&mut self, ty: &'ll Type, len: &'ll Value, align: Align) -> &'ll Value { |
| 464 | unsafe { |