mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
aed293dfba
commit
3281528de4
@ -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() {
|
||||
|
@ -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() {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user