Remove legalizer support from cranelift-codegen-meta
This commit is contained in:
@@ -77,15 +77,6 @@ impl Formatter {
|
||||
}
|
||||
}
|
||||
|
||||
/// Get a string containing whitespace outdented one level. Used for
|
||||
/// lines of code that are inside a single indented block.
|
||||
fn get_outdent(&mut self) -> String {
|
||||
self.indent_pop();
|
||||
let s = self.get_indent();
|
||||
self.indent_push();
|
||||
s
|
||||
}
|
||||
|
||||
/// Add an indented line.
|
||||
pub fn line(&mut self, contents: impl AsRef<str>) {
|
||||
let indented_line = format!("{}{}\n", self.get_indent(), contents.as_ref());
|
||||
@@ -97,12 +88,6 @@ impl Formatter {
|
||||
self.lines.push("\n".to_string());
|
||||
}
|
||||
|
||||
/// Emit a line outdented one level.
|
||||
pub fn outdented_line(&mut self, s: &str) {
|
||||
let new_line = format!("{}{}\n", self.get_outdent(), s);
|
||||
self.lines.push(new_line);
|
||||
}
|
||||
|
||||
/// Write `self.lines` to a file.
|
||||
pub fn update_file(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user