Fix global value colocated printing
It used to print `gv0 = colocated symbol u1:1` while cranelift-reader expects `gv0 = symbol colocated u1:1`.
This commit is contained in:
@@ -114,10 +114,12 @@ impl fmt::Display for GlobalValueData {
|
|||||||
offset,
|
offset,
|
||||||
colocated,
|
colocated,
|
||||||
} => {
|
} => {
|
||||||
if colocated {
|
write!(
|
||||||
write!(f, "colocated ")?;
|
f,
|
||||||
}
|
"symbol {}{}",
|
||||||
write!(f, "symbol {}", name)?;
|
if colocated { "colocated " } else { "" },
|
||||||
|
name
|
||||||
|
)?;
|
||||||
let offset_val: i64 = offset.into();
|
let offset_val: i64 = offset.into();
|
||||||
if offset_val > 0 {
|
if offset_val > 0 {
|
||||||
write!(f, "+")?;
|
write!(f, "+")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user