aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Support/CommandLine.cpp2
-rw-r--r--lib/System/Host.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 4275b28..59340d4 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -1154,7 +1154,7 @@ public:
OS << " with assertions";
#endif
std::string CPU = sys::getHostCPUName();
- if (CPU.empty()) CPU = "(unknown)";
+ if (CPU == "generic") CPU = "(unknown)";
OS << ".\n"
<< " Built " << __DATE__ << " (" << __TIME__ << ").\n"
<< " Host: " << sys::getHostTriple() << '\n'
diff --git a/lib/System/Host.cpp b/lib/System/Host.cpp
index 0faf8fe..37591a5 100644
--- a/lib/System/Host.cpp
+++ b/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";
}