Clarify FunctionName's role in its comment.

This commit is contained in:
Dan Gohman
2017-10-09 13:50:03 -07:00
parent d1766f0ba4
commit 0c4500897f

View File

@@ -8,8 +8,12 @@ use std::ascii::AsciiExt;
/// The name of a function can be any sequence of bytes. /// The name of a function can be any sequence of bytes.
/// ///
/// Function names are mostly a testing and debugging tool. /// Function names are primarily used as keys by code using Cretonne to map
/// In particular, `.cton` files use function names to identify functions. /// from a cretonne::ir::Function to additional associated data.
///
/// Function names can also serve as a primitive testing and debugging tool.
/// In particular, many `.cton` test files use function names to identify
/// functions.
#[derive(Debug, Clone, PartialEq, Eq, Default)] #[derive(Debug, Clone, PartialEq, Eq, Default)]
pub struct FunctionName(NameRepr); pub struct FunctionName(NameRepr);