From: Daniel Dunbar Date: Sat, 14 Nov 2009 21:36:07 +0000 (+0000) Subject: Report the detected host CPU in --version. X-Git-Tag: android-x86-6.0-r1~1003^2~12915 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ba43e0785b7449501f019b9aa4433881dd05bb6a;p=android-x86%2Fexternal-llvm.git Report the detected host CPU in --version. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88813 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 07900d84936..4275b283354 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -1153,9 +1153,12 @@ public: #ifndef NDEBUG OS << " with assertions"; #endif + std::string CPU = sys::getHostCPUName(); + if (CPU.empty()) CPU = "(unknown)"; OS << ".\n" << " Built " << __DATE__ << " (" << __TIME__ << ").\n" << " Host: " << sys::getHostTriple() << '\n' + << " Host CPU: " << CPU << '\n' << '\n' << " Registered Targets:\n";