Record the .eh_frame sections from each .o file.

This commit is contained in:
Nick Lewycky
2020-06-18 13:17:58 -07:00
parent 69ccd86b4a
commit 52eae576fc
4 changed files with 23 additions and 6 deletions

View File

@ -83,7 +83,7 @@ impl Compiler for LLVMCompiler {
)
.collect::<Result<Vec<_>, CompileError>>()?
.into_iter()
.map(|(mut compiled_function, function_custom_sections)| {
.map(|(mut compiled_function, function_custom_sections, _eh_frame_section_indices)| {
let first_section = module_custom_sections.len() as u32;
for (_, custom_section) in function_custom_sections.iter() {
// TODO: remove this call to clone()