Clarify the meaning of the symbol_value instruction.

This commit is contained in:
Dan Gohman
2018-09-27 11:43:41 -07:00
parent 6fdd58d143
commit aa5ba71c97
2 changed files with 10 additions and 5 deletions

View File

@@ -39,8 +39,13 @@ pub enum GlobalValueData {
global_type: Type,
},
/// Value is a symbolic address. Cranelift itself does not interpret this name;
/// it's used by embedders to link with other data structures.
/// Value is symbolic, meaning it's a name which will be resolved to an
/// actual value later (eg. by linking). Cranelift itself does not interpret
/// this name; it's used by embedders to link with other data structures.
///
/// For now, symbolic values always have pointer type, and represent
/// addresses, however in the future they could be used to represent other
/// things as well.
Symbol {
/// The symbolic name.
name: ExternalName,