diff options
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 54fbb558c43..230d0921184 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -64,7 +64,7 @@ static std::unique_ptr<llvm::MemoryBuffer> return std::move(*Text); } -StringRef sys::detail::getHostCPUNameForPowerPC( +StringRef sys::LinuxReadCpuInfo::getHostCPUName_powerpc( const StringRef &ProcCpuinfoContent) { // Access to the Processor Version Register (PVR) on PowerPC is privileged, // and so we must use an operating-system interface to determine the current @@ -144,7 +144,7 @@ StringRef sys::detail::getHostCPUNameForPowerPC( .Default(generic); } -StringRef sys::detail::getHostCPUNameForARM( +StringRef sys::LinuxReadCpuInfo::getHostCPUName_arm( const StringRef &ProcCpuinfoContent) { // The cpuid register on arm is not accessible from user space. On Linux, // it is exposed through the /proc/cpuinfo file. @@ -195,7 +195,7 @@ StringRef sys::detail::getHostCPUNameForARM( return "generic"; } -StringRef sys::detail::getHostCPUNameForS390x( +StringRef sys::LinuxReadCpuInfo::getHostCPUName_s390x( const StringRef &ProcCpuinfoContent) { // STIDP is a privileged operation, so use /proc/cpuinfo instead. @@ -1197,19 +1197,19 @@ StringRef sys::getHostCPUName() { StringRef sys::getHostCPUName() { std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent(); const StringRef& Content = P ? P->getBuffer() : ""; - return detail::getHostCPUNameForPowerPC(Content); + return LinuxReadCpuInfo::getHostCPUName_powerpc(Content); } #elif defined(__linux__) && defined(__arm__) StringRef sys::getHostCPUName() { std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent(); const StringRef& Content = P ? P->getBuffer() : ""; - return detail::getHostCPUNameForARM(Content); + return LinuxReadCpuInfo::getHostCPUName_arm(Content); } #elif defined(__linux__) && defined(__s390x__) StringRef sys::getHostCPUName() { std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent(); const StringRef& Content = P ? P->getBuffer() : ""; - return detail::getHostCPUNameForS390x(Content); + return LinuxReadCpuInfo::getHostCPUName_s390x(Content); } #else StringRef sys::getHostCPUName() { return "generic"; } |