mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
macho-dump: Add support for dumping string table data.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120217 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -213,6 +213,14 @@ static int DumpSymtabCommand(MachOObject &Obj,
|
||||
outs() << " ('stroff', " << SLC->StringTableOffset << ")\n";
|
||||
outs() << " ('strsize', " << SLC->StringTableSize << ")\n";
|
||||
|
||||
// Cache the string table data.
|
||||
Obj.RegisterStringTable(*SLC);
|
||||
|
||||
// Dump the string data.
|
||||
outs() << " ('_string_data', '";
|
||||
outs().write_escaped(Obj.getStringTableData(),
|
||||
/*UseHexEscapes=*/true) << "')\n";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user