Add the -arch flag support to llvm-nm to select the slice out of a Mach-O
authorKevin Enderby <enderby@apple.com>
Mon, 30 Jun 2014 18:45:23 +0000 (18:45 +0000)
committerKevin Enderby <enderby@apple.com>
Mon, 30 Jun 2014 18:45:23 +0000 (18:45 +0000)
commitc28eff1356f0a1c214c7dfda70a2090446826432
tree4e1c0d0256d9a2c4d5d6f992c127aea8d2921e19
parent97fb702886ffbaf2e32753cfdc0ab6f091428a19
Add the -arch flag support to llvm-nm to select the slice out of a Mach-O
universal file.  This also includes support for -arch all, selecting the host
architecture by default from a universal file and checking if -arch is used
with a standard Mach-O it matches that architecture.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212054 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
include/llvm/Object/MachOUniversal.h
include/llvm/Support/MachO.h
lib/Object/MachOObjectFile.cpp
test/Object/nm-universal-binary.test
tools/llvm-nm/llvm-nm.cpp