1
Fork 0

codegen and write_metadata can mutate ModuleLLvm.

This commit is contained in:
Gabriela Alexandra Moldovan 2019-02-21 13:38:44 +00:00
parent 36f18f2d3a
commit e5d1fa58f2
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ use crate::value::Value;
pub fn write_metadata<'a, 'gcx>(
tcx: TyCtxt<'a, 'gcx, 'gcx>,
llvm_module: &ModuleLlvm
llvm_module: &mut ModuleLlvm
) -> EncodedMetadata {
use std::io::Write;
use flate2::Compression;