Move PPC host-CPU detection logic from PPCSubtarget into sys::getHostCPUName().
authorHal Finkel <hfinkel@anl.gov>
Mon, 11 Jun 2012 23:14:31 +0000 (23:14 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 11 Jun 2012 23:14:31 +0000 (23:14 +0000)
commit7bb39d861297398e62e2aed6dda3e80d82c453cd
tree22236fc8c763dec5724ffc15ceb4ba103cba620d
parentad27086e6697619fbb62f9b04b62816aa2624836
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@158337 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Host.cpp
lib/Target/PowerPC/PPCSubtarget.cpp