Add documentation comments to GlobalValue's fields.

This commit is contained in:
Dan Gohman
2017-09-07 04:40:06 -07:00
parent d6f6af104b
commit 388a96421b

View File

@@ -12,7 +12,12 @@ pub enum GlobalValue {
Const(ir::Value),
/// This is a variable in memory that should be referenced as a `GlobalVar`.
Memory { gv: ir::GlobalVar, ty: ir::Type },
Memory {
/// Which global variable should be referenced.
gv: ir::GlobalVar,
/// The global variable's type.
ty: ir::Type,
},
}
/// Environment affecting the translation of a single WebAssembly function.