Reapply r158337, this time properly protect Darwin/PPC host CPU use with __ppc__.
authorHal Finkel <hfinkel@anl.gov>
Tue, 12 Jun 2012 03:03:13 +0000 (03:03 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 12 Jun 2012 03:03:13 +0000 (03:03 +0000)
commit4db738ae9862a2d00e2dca5b8fbf9d4dfa706142
treef443934926716bfd4294d5157d3d4cf3bb79ceba
parent3e61374295693beb0a899af44ccf4b5085dffbf3
Reapply r158337, this time properly protect Darwin/PPC host CPU use with __ppc__.

Original commit message:
Move PPC host-CPU detection logic from PPCSubtarget into sys::getHostCPUName().

Both the new Linux functionality and the old Darwin functions have been moved.
This change also allows this information to be queried directly by clang and
other frontends (clang, for example, will now have real -mcpu=native support).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158349 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Host.cpp
lib/Target/PowerPC/PPCSubtarget.cpp