Skip to content
Snippets Groups Projects
Commit b4c1cbff authored by Shoaib Meenai's avatar Shoaib Meenai
Browse files

[hmaptool] Fix string decoding for Python 3

Our "strings" were actually bytes, which made verbose dumping fail.
Decode them so they actually become strings.

Reviewed By: bruno

Differential Revision: https://reviews.llvm.org/D118005
parent 0c1d3304
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ class HeaderMap(object):
raise SystemExit("error: %s: invalid string index" % (
idx,))
end_idx = self.strtable.index(0, idx)
return self.strtable[idx:end_idx]
return self.strtable[idx:end_idx].decode()
@property
def mappings(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment