aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Host.cpp
diff options
context:
space:
mode:
authorAlina Sbirlea <asbirlea@google.com>2016-06-09 22:47:12 +0000
committerAlina Sbirlea <asbirlea@google.com>2016-06-09 22:47:12 +0000
commite76dcd2b12d7e3300bf9c5a967a9a5a341e7091f (patch)
tree8e6cb02a7981a2ad94e2e75a80fe1b339aa72ca1 /llvm/lib/Support/Host.cpp
parent2b5a5459389961ac915e8a760e1ea46209a28333 (diff)
downloadllvm-e76dcd2b12d7e3300bf9c5a967a9a5a341e7091f.zip
llvm-e76dcd2b12d7e3300bf9c5a967a9a5a341e7091f.tar.gz
llvm-e76dcd2b12d7e3300bf9c5a967a9a5a341e7091f.tar.bz2
[cpu-detection] Return amdfam10 for all subtypes. Address Bug 28067.
Summary: Remove architecture subtype from the string returned by getHostCPUName(). String matching done on type. Reviewers: llvm-commits, echristo Subscribers: mehdi_amini Differential Revision: http://reviews.llvm.org/D21193 llvm-svn: 272328
Diffstat (limited to 'llvm/lib/Support/Host.cpp')
-rw-r--r--llvm/lib/Support/Host.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 7c6447b..a576fb2 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -869,16 +869,7 @@ StringRef sys::getHostCPUName() {
return "athlon";
}
case AMDFAM10H:
- switch (Subtype) {
- case AMDFAM10H_BARCELONA:
- return "amdfam10-barcelona";
- case AMDFAM10H_SHANGHAI:
- return "amdfam10-shanghai";
- case AMDFAM10H_ISTANBUL:
- return "amdfam10-istanbul";
- default:
return "amdfam10";
- }
case AMDFAM14H:
return "btver1";
case AMDFAM15H: