aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-12-20 00:24:01 +0000
committerDevang Patel <dpatel@apple.com>2007-12-20 00:24:01 +0000
commite3611871cb5430f9c958cab1be7ef2e0778b3241 (patch)
treece447bc515fd903294fa31e457ab59992c2547fb /include
parent1475142b93a618da72ec471e5ad7c1510c2feb37 (diff)
downloadexternal_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.h4
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