From: Rafael Espindola Date: Tue, 3 Feb 2015 19:25:53 +0000 (+0000) Subject: Fix duplicated symbol error. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f2e11261d425a72f9fdca956074ba27c01ead30f;p=oota-llvm.git Fix duplicated symbol error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228012 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 3aaf818e3df..6df6e1716ad 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -518,9 +518,7 @@ lto_codegen_compile_optimized(lto_code_gen_t cg, size_t* length); * \since LTO_API_VERSION=12 */ extern unsigned int -lto_api_version() { - return LTO_API_VERSION; -} +lto_api_version(); /** * Sets options to help debug codegen bugs. diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 80dca6b4d46..3a336526e6b 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -330,3 +330,5 @@ bool lto_codegen_compile_to_file(lto_code_gen_t cg, const char **name) { void lto_codegen_debug_options(lto_code_gen_t cg, const char *opt) { unwrap(cg)->setCodeGenDebugOptions(opt); } + +unsigned int lto_api_version() { return LTO_API_VERSION; }