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:
parent
8df61fd902
commit
7626fed278
@ -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';
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user