Minor simplification
This commit is contained in:
@@ -455,8 +455,7 @@ impl Backend for ObjectBackend {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn finish(mut self, contents: &ModuleContents<Self>) -> ObjectProduct {
|
fn finish(mut self, contents: &ModuleContents<Self>) -> ObjectProduct {
|
||||||
let mut symbol_relocs = Vec::new();
|
let symbol_relocs = mem::take(&mut self.relocs);
|
||||||
mem::swap(&mut symbol_relocs, &mut self.relocs);
|
|
||||||
for symbol in symbol_relocs {
|
for symbol in symbol_relocs {
|
||||||
for &RelocRecord {
|
for &RelocRecord {
|
||||||
offset,
|
offset,
|
||||||
|
|||||||
Reference in New Issue
Block a user