Implement getHostCPUName for ARM/linux. This will be used to implement -march=native...
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Jun 2012 21:36:32 +0000 (21:36 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 26 Jun 2012 21:36:32 +0000 (21:36 +0000)
commit4750c1d804a793edc1f00d4f8b9777352bb0a761
tree3fca3e1c609667032f9962cd085c8ca98654939b
parent275c85f1a7d04cf1dc6c166211dc2d72fea43c0d
Implement getHostCPUName for ARM/linux. This will be used to implement -march=native in clang.

The cpuid registers are only available in privileged mode so we don't have
an OS-independent way of implementing this. ARM doesn't provide a list of
processor IDs so the list is somewhat incomplete.

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