[llvm-commits] [llvm] r88813 - /llvm/trunk/lib/Support/CommandLine.cpp
Daniel Dunbar
daniel at zuster.org
Sat Nov 14 13:36:07 PST 2009
Author: ddunbar
Date: Sat Nov 14 15:36:07 2009
New Revision: 88813
URL: http://llvm.org/viewvc/llvm-project?rev=88813&view=rev
Log:
Report the detected host CPU in --version.
Modified:
llvm/trunk/lib/Support/CommandLine.cpp
Modified: llvm/trunk/lib/Support/CommandLine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/CommandLine.cpp?rev=88813&r1=88812&r2=88813&view=diff
==============================================================================
--- llvm/trunk/lib/Support/CommandLine.cpp (original)
+++ llvm/trunk/lib/Support/CommandLine.cpp Sat Nov 14 15:36:07 2009
@@ -1153,9 +1153,12 @@
#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";
More information about the llvm-commits
mailing list