From 5878249b4f8276773349a1544ea22478afd0ee50 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Mon, 2 Sep 2013 17:13:45 +0200 Subject: Fixed unused static function warning for forceImport --- lib/Module/KModule.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Module') diff --git a/lib/Module/KModule.cpp b/lib/Module/KModule.cpp index df6c6ebb..0b61fd9e 100644 --- a/lib/Module/KModule.cpp +++ b/lib/Module/KModule.cpp @@ -199,6 +199,7 @@ static void injectStaticConstructorsAndDestructors(Module *m) { } } +#if LLVM_VERSION_CODE < LLVM_VERSION(3, 3) static void forceImport(Module *m, const char *name, LLVM_TYPE_Q Type *retType, ...) { // If module lacks an externally visible symbol for the name then we @@ -221,6 +222,7 @@ static void forceImport(Module *m, const char *name, LLVM_TYPE_Q Type *retType, m->getOrInsertFunction(name, FunctionType::get(retType, argTypes, false)); } } +#endif void KModule::prepare(const Interpreter::ModuleOptions &opts, InterpreterHandler *ih) { -- cgit 1.4.1