[spv-out] Fix annotations not getting added to output (#281)

This commit is contained in:
Timo de Kort
2020-11-16 22:49:35 +01:00
committed by GitHub
parent 437b33d536
commit 820dc51e2f

View File

@@ -1671,10 +1671,6 @@ impl Writer {
));
}
for annotation in self.annotations.iter() {
annotation.to_words(&mut self.logical_layout.annotations);
}
for (handle, ir_function) in ir_module.functions.iter() {
let id = self.write_function(ir_function, ir_module);
self.lookup_function.insert(handle, id);
@@ -1703,6 +1699,10 @@ impl Writer {
debug.to_words(&mut self.logical_layout.debugs);
}
}
for annotation in self.annotations.iter() {
annotation.to_words(&mut self.logical_layout.annotations);
}
}
pub fn write(&mut self, ir_module: &crate::Module) -> Vec<Word> {