summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Host.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-11-17 17:57:04 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-11-17 17:57:04 +0000
commit713fd3564adab986de78c3289729fb1b10b5df15 (patch)
treeb34d2d51e6aea48edd5aba3516cbdde014e43e36 /llvm/lib/System/Host.cpp
parent60f4854c7698db32e15d9e6635d1577676722923 (diff)
downloadbcm5719-llvm-713fd3564adab986de78c3289729fb1b10b5df15.tar.gz
bcm5719-llvm-713fd3564adab986de78c3289729fb1b10b5df15.zip
Revert CPU detection code to return "generic" instead of an empty string in case
of failure. The x86 target didn't like empty cpu names and broke x86 tests on non-x86 buildbots. llvm-svn: 89111
Diffstat (limited to 'llvm/lib/System/Host.cpp')
-rw-r--r--llvm/lib/System/Host.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Host.cpp b/llvm/lib/System/Host.cpp
index 0faf8feacf4..37591a57b07 100644
--- a/llvm/lib/System/Host.cpp
+++ b/llvm/lib/System/Host.cpp
@@ -249,7 +249,7 @@ std::string sys::getHostCPUName() {
}
default:
- return "";
+ return "generic";
}
} else if (memcmp(text.c, "AuthenticAMD", 12) == 0) {
// FIXME: this poorly matches the generated SubtargetFeatureKV table. There
@@ -289,10 +289,10 @@ std::string sys::getHostCPUName() {
case 16:
return "amdfam10";
default:
- return "";
+ return "generic";
}
}
#endif
- return "";
+ return "generic";
}
OpenPOWER on IntegriCloud