diff options
author | Kristof Beyls <kristof.beyls@arm.com> | 2017-03-31 13:06:40 +0000 |
---|---|---|
committer | Kristof Beyls <kristof.beyls@arm.com> | 2017-03-31 13:06:40 +0000 |
commit | 77ce4f6e37ad0aa61894d4a840f17e89208d0c74 (patch) | |
tree | 0a767d5a57a008892cf9b19191793fb8a82be603 /llvm/lib/Support/Host.cpp | |
parent | 9d7df75c9c9dd91b801cd152f837e8cfb529cb2b (diff) | |
download | bcm5719-llvm-77ce4f6e37ad0aa61894d4a840f17e89208d0c74.tar.gz bcm5719-llvm-77ce4f6e37ad0aa61894d4a840f17e89208d0c74.zip |
Make naming in Host.h in line with coding standards.
Based on post-commit review comments by Chandler Carruth on
https://reviews.llvm.org/D31236. Thanks!
llvm-svn: 299211
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 230d0921184..54fbb558c43 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::LinuxReadCpuInfo::getHostCPUName_powerpc( +StringRef sys::detail::getHostCPUNameForPowerPC( 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::LinuxReadCpuInfo::getHostCPUName_powerpc( .Default(generic); } -StringRef sys::LinuxReadCpuInfo::getHostCPUName_arm( +StringRef sys::detail::getHostCPUNameForARM( 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::LinuxReadCpuInfo::getHostCPUName_arm( return "generic"; } -StringRef sys::LinuxReadCpuInfo::getHostCPUName_s390x( +StringRef sys::detail::getHostCPUNameForS390x( 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 LinuxReadCpuInfo::getHostCPUName_powerpc(Content); + return detail::getHostCPUNameForPowerPC(Content); } #elif defined(__linux__) && defined(__arm__) StringRef sys::getHostCPUName() { std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent(); const StringRef& Content = P ? P->getBuffer() : ""; - return LinuxReadCpuInfo::getHostCPUName_arm(Content); + return detail::getHostCPUNameForARM(Content); } #elif defined(__linux__) && defined(__s390x__) StringRef sys::getHostCPUName() { std::unique_ptr<llvm::MemoryBuffer> P = getProcCpuinfoContent(); const StringRef& Content = P ? P->getBuffer() : ""; - return LinuxReadCpuInfo::getHostCPUName_s390x(Content); + return detail::getHostCPUNameForS390x(Content); } #else StringRef sys::getHostCPUName() { return "generic"; } |