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 | c77d9a4bdcb38493ce2b210b0e8e306181608657 (patch) | |
tree | 3875d8cd1c9c9a1227f95ce87270fe1efdb20a98 /lib/Support/CommandLine.cpp | |
parent | f492c7348325f8f039047ab11cd8a44b46cb9a6e (diff) | |
download | external_llvm-c77d9a4bdcb38493ce2b210b0e8e306181608657.zip external_llvm-c77d9a4bdcb38493ce2b210b0e8e306181608657.tar.gz external_llvm-c77d9a4bdcb38493ce2b210b0e8e306181608657.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
-rw-r--r-- | lib/Support/CommandLine.cpp | 2 |
1 files changed, 1 insertions, 1 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' |