machinst x64: remove dead code and allow(dead_code) annotation;

The BranchTarget is always used as a label, so just use a plain
MachLabel in this case.
This commit is contained in:
Benjamin Bouvier
2020-10-07 13:31:29 +02:00
parent e32e6fb612
commit a470f1e0cd
7 changed files with 90 additions and 165 deletions

View File

@@ -148,6 +148,7 @@ use crate::timing;
use log::trace;
use smallvec::SmallVec;
use std::mem;
use std::string::String;
/// A buffer of output to be produced, fixed up, and then emitted to a CodeSink
/// in bulk.
@@ -259,6 +260,11 @@ impl MachLabel {
pub fn get(self) -> u32 {
self.0
}
/// Creates a string representing this label, for convenience.
pub fn to_string(&self) -> String {
format!("label{}", self.0)
}
}
/// A stack map extent, when creating a stack map.