Change section_data dumping to print hex numbers instead of using
python's %r.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113685 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Scripts/macho-dump b/test/Scripts/macho-dump
index 72f8339..afef2ba 100755
--- a/test/Scripts/macho-dump
+++ b/test/Scripts/macho-dump
@@ -4,6 +4,8 @@
import sys
import StringIO
+import common_dump
+
class Reader:
def __init__(self, path):
if path == '-':
@@ -267,7 +269,7 @@
if opts.dumpSectionData:
f.seek(offset)
- print " ('_section_data', %r)" % f.read(size)
+ print " ('_section_data', '%s')" % common_dump.dataToHex(f.read(size))
f.seek(prev_pos)