[dsymutil] Make the triple detection more strict.
authorFrederic Riss <friss@apple.com>
Fri, 24 Jul 2015 06:41:04 +0000 (06:41 +0000)
committerFrederic Riss <friss@apple.com>
Fri, 24 Jul 2015 06:41:04 +0000 (06:41 +0000)
commit65f0abf275ccc1eb249bb12ce4ac826c9df37986
treec3154244cd9f5c78e6447fe7f14dcd45e3a2f039
parent9388406c2131a7e3c1e26524ba62d4f9e000168d
[dsymutil] Make the triple detection more strict.

MachOObjectFile offers a method for detecting the correct triple, use
it instead of the previous approximation. This doesn't matter right
now, but it will become important for mach-o universal (fat) binaries.

llvm-svn: 243095
llvm/test/tools/dsymutil/X86/frame-1.test
llvm/test/tools/dsymutil/X86/frame-2.test
llvm/test/tools/dsymutil/X86/odr-1.test
llvm/test/tools/dsymutil/archive-timestamp.test
llvm/test/tools/dsymutil/debug-map-parsing.test
llvm/test/tools/dsymutil/yaml-object-address-rewrite.test
llvm/tools/dsymutil/BinaryHolder.cpp
llvm/tools/dsymutil/BinaryHolder.h
llvm/tools/dsymutil/MachODebugMapParser.cpp