diff options
author | Devang Patel <dpatel@apple.com> | 2007-02-01 01:46:06 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-02-01 01:46:06 +0000 |
commit | 3281528de4755f8f4653bf6ff509ec88d795f975 (patch) | |
tree | 404d705276aa660413cf932655f60b074e9ff21a /tools/lto | |
parent | aed293dfba04b07a867491c11dfff4bf3eb6bddd (diff) | |
download | external_llvm-3281528de4755f8f4653bf6ff509ec88d795f975.zip external_llvm-3281528de4755f8f4653bf6ff509ec88d795f975.tar.gz external_llvm-3281528de4755f8f4653bf6ff509ec88d795f975.tar.bz2 |
Add printVersion(). Linker can use it to print LLVM version number.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33738 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index d280f23..f3688b4 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -457,6 +457,10 @@ LTO::optimizeModules(const std::string &OutputFilename, return LTO_OPT_SUCCESS; } +void LTO::printVersion() { + cl::PrintVersionMessage(); +} + /// Unused pure-virtual destructor. Must remain empty. LinkTimeOptimizer::~LinkTimeOptimizer() {} |