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
This commit is contained in:
Devang Patel 2007-02-01 01:46:06 +00:00
parent aed293dfba
commit 3281528de4
2 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,7 @@ namespace llvm {
const char *) = 0;
virtual void getTargetTriple(const std::string &, std::string &) = 0;
virtual void removeModule (const std::string &InputFilename) = 0;
virtual void printVersion () = 0;
virtual ~LinkTimeOptimizer() = 0;
};
@ -119,6 +120,7 @@ namespace llvm {
void getTargetTriple(const std::string &InputFilename,
std::string &targetTriple);
void removeModule (const std::string &InputFilename);
void printVersion();
// Constructors and destructors
LTO() {

View File

@ -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() {}