projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c477f5
)
Report the detected host CPU in --version.
author
Daniel Dunbar
<daniel@zuster.org>
Sat, 14 Nov 2009 21:36:07 +0000
(21:36 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sat, 14 Nov 2009 21:36:07 +0000
(21:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88813
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CommandLine.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CommandLine.cpp
b/lib/Support/CommandLine.cpp
index 07900d8493655eb689cdcba5717f3663feb37cad..4275b2833548f85909292c528866d35432338c7d 100644
(file)
--- 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";