diff options
author | Devang Patel <dpatel@apple.com> | 2007-12-20 00:24:01 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-12-20 00:24:01 +0000 |
commit | e3611871cb5430f9c958cab1be7ef2e0778b3241 (patch) | |
tree | ce447bc515fd903294fa31e457ab59992c2547fb /include | |
parent | 1475142b93a618da72ec471e5ad7c1510c2feb37 (diff) | |
download | external_llvm-e3611871cb5430f9c958cab1be7ef2e0778b3241.zip external_llvm-e3611871cb5430f9c958cab1be7ef2e0778b3241.tar.gz external_llvm-e3611871cb5430f9c958cab1be7ef2e0778b3241.tar.bz2 |
Add lto version check mechanism.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45238 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/LinkTimeOptimizer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/LinkTimeOptimizer.h b/include/llvm/LinkTimeOptimizer.h index 164232d..fe87ae0 100644 --- a/include/llvm/LinkTimeOptimizer.h +++ b/include/llvm/LinkTimeOptimizer.h @@ -20,6 +20,8 @@ #include <set> #include <llvm/ADT/hash_map> +#define LLVM_LTO_VERSION 1 + namespace llvm { class Module; @@ -148,6 +150,6 @@ namespace llvm { /// linker to use dlopen() interface to dynamically load LinkTimeOptimizer. /// extern "C" helps, because dlopen() interface uses name to find the symbol. extern "C" -llvm::LinkTimeOptimizer *createLLVMOptimizer(); +llvm::LinkTimeOptimizer *createLLVMOptimizer(unsigned VERSION = LLVM_LTO_VERSION); #endif |