Rename FunctionName to ExternalName.

This commit is contained in:
Dan Gohman
2017-10-27 13:05:49 -07:00
parent fae5ffb556
commit c2665385b1
11 changed files with 56 additions and 55 deletions

View File

@@ -441,7 +441,7 @@ impl<'a> fmt::Display for DisplayValues<'a> {
#[cfg(test)]
mod tests {
use ir::{Function, FunctionName, StackSlotData, StackSlotKind};
use ir::{Function, ExternalName, StackSlotData, StackSlotKind};
use ir::types;
#[test]
@@ -449,7 +449,7 @@ mod tests {
let mut f = Function::new();
assert_eq!(f.to_string(), "function %() native {\n}\n");
f.name = FunctionName::new("foo");
f.name = ExternalName::new("foo");
assert_eq!(f.to_string(), "function %foo() native {\n}\n");
f.create_stack_slot(StackSlotData::new(StackSlotKind::Local, 4));