diff --git a/lib/DebugInfo/DWARF/DWARFContext.cpp b/lib/DebugInfo/DWARF/DWARFContext.cpp index eb23ca8229a..cbcb32c9458 100644 --- a/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -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'; } } diff --git a/test/tools/llvm-dwarfdump/uuid.yaml b/test/tools/llvm-dwarfdump/uuid.yaml index a1e82649576..b36e3aabc0a 100644 --- a/test/tools/llvm-dwarfdump/uuid.yaml +++ b/test/tools/llvm-dwarfdump/uuid.yaml @@ -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 +# CHECK: UUID: E5874E6F-946F-317B-B348-56FAEE59D8D1 (x86_64h) --- !mach-o FileHeader: magic: 0xFEEDFACF cputype: 0x01000007 - cpusubtype: 0x80000003 + cpusubtype: 0x80000008 filetype: 0x00000002 ncmds: 14 sizeofcmds: 728 diff --git a/test/tools/llvm-dwarfdump/uuid32.yaml b/test/tools/llvm-dwarfdump/uuid32.yaml index ae367b26f24..1144547c3d1 100644 --- a/test/tools/llvm-dwarfdump/uuid32.yaml +++ b/test/tools/llvm-dwarfdump/uuid32.yaml @@ -1,5 +1,5 @@ # RUN: yaml2obj %s | llvm-dwarfdump --uuid - | FileCheck %s -# CHECK: UUID: 229E6146-A7AB-3BA0-8B17-DD5125D3AFEF Mach-O 32-bit i386 +# CHECK: UUID: 229E6146-A7AB-3BA0-8B17-DD5125D3AFEF (i386) --- !mach-o FileHeader: magic: 0xFEEDFACE