1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

dwarfdump: Match the --uuid output with that of Darwin dwarfdump.

This option is widely used by scripts and there is no reason to break them.

rdar://problem/36032398

llvm-svn: 321901
This commit is contained in:
Adrian Prantl 2018-01-05 21:44:17 +00:00
parent 8df61fd902
commit 7626fed278
3 changed files with 5 additions and 4 deletions

View File

@ -82,7 +82,8 @@ static void dumpUUID(raw_ostream &OS, const ObjectFile &Obj) {
OS << "UUID: ";
memcpy(&UUID, LC.Ptr+sizeof(LC.C), sizeof(UUID));
OS.write_uuid(UUID);
OS << ' ' << MachO->getFileFormatName();
Triple T = MachO->getArchTriple();
OS << " (" << T.getArchName() << ')';
OS << ' ' << MachO->getFileName() << '\n';
}
}

View File

@ -1,11 +1,11 @@
# RUN: yaml2obj %s | llvm-dwarfdump -u - | FileCheck %s
# RUN: yaml2obj %s | llvm-dwarfdump --uuid - | FileCheck %s
# CHECK: UUID: E5874E6F-946F-317B-B348-56FAEE59D8D1 Mach-O 64-bit x86-64 <stdin>
# CHECK: UUID: E5874E6F-946F-317B-B348-56FAEE59D8D1 (x86_64h) <stdin>
--- !mach-o
FileHeader:
magic: 0xFEEDFACF
cputype: 0x01000007
cpusubtype: 0x80000003
cpusubtype: 0x80000008
filetype: 0x00000002
ncmds: 14
sizeofcmds: 728

View File

@ -1,5 +1,5 @@
# RUN: yaml2obj %s | llvm-dwarfdump --uuid - | FileCheck %s
# CHECK: UUID: 229E6146-A7AB-3BA0-8B17-DD5125D3AFEF Mach-O 32-bit i386 <stdin>
# CHECK: UUID: 229E6146-A7AB-3BA0-8B17-DD5125D3AFEF (i386) <stdin>
--- !mach-o
FileHeader:
magic: 0xFEEDFACE