llvm.org GIT mirror llvm / 3281528
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 Devang Patel 12 years ago
2 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9595 const char *) = 0;
9696 virtual void getTargetTriple(const std::string &, std::string &) = 0;
9797 virtual void removeModule (const std::string &InputFilename) = 0;
98 virtual void printVersion () = 0;
9899 virtual ~LinkTimeOptimizer() = 0;
99100 };
100101
118119 void getTargetTriple(const std::string &InputFilename,
119120 std::string &targetTriple);
120121 void removeModule (const std::string &InputFilename);
122 void printVersion();
121123
122124 // Constructors and destructors
123125 LTO() {
456456 return LTO_OPT_SUCCESS;
457457 }
458458
459 void LTO::printVersion() {
460 cl::PrintVersionMessage();
461 }
462
459463 /// Unused pure-virtual destructor. Must remain empty.
460464 LinkTimeOptimizer::~LinkTimeOptimizer() {}
461465