diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-17 17:57:04 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-11-17 17:57:04 +0000 |
commit | 713fd3564adab986de78c3289729fb1b10b5df15 (patch) | |
tree | b34d2d51e6aea48edd5aba3516cbdde014e43e36 /llvm/lib/Support/CommandLine.cpp | |
parent | 60f4854c7698db32e15d9e6635d1577676722923 (diff) | |
download | bcm5719-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/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 4275b283354..59340d4d5bc 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/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' |