Print auxiliary data in the assembly

This commit is contained in:
Alex Beregszaszi
2017-06-14 20:14:15 +01:00
parent 3273e865ec
commit 585b3ea3e3
3 changed files with 10 additions and 2 deletions
+6
View File
@@ -216,6 +216,9 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con
}
}
if (m_auxiliaryData.size() > 0)
_out << endl << _prefix << "auxdata: 0x" << toHex(m_auxiliaryData) << endl;
return _out;
}
@@ -317,6 +320,9 @@ Json::Value Assembly::streamAsmJson(ostream& _out, StringMap const& _sourceCodes
root[".data"] = data;
}
if (m_auxiliaryData.size() > 0)
root[".auxdata"] = toHex(m_auxiliaryData);
_out << root;
return root;