diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 21:36:07 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-11-14 21:36:07 +0000 |
commit | d90a9a04f30b447c772d7d1d1bf0611311c49e24 (patch) | |
tree | dd652283c51a7b3e7536baef230635568fe1eea7 /llvm/lib/Support/CommandLine.cpp | |
parent | e07594df4598131a39fc54194f5df1eb898d2c8d (diff) | |
download | bcm5719-llvm-d90a9a04f30b447c772d7d1d1bf0611311c49e24.tar.gz bcm5719-llvm-d90a9a04f30b447c772d7d1d1bf0611311c49e24.zip |
Report the detected host CPU in --version.
llvm-svn: 88813
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 07900d84936..4275b283354 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/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"; |