[llvm] r228012 - Fix duplicated symbol error.
Rafael Espindola
rafael.espindola at gmail.com
Tue Feb 3 11:25:53 PST 2015
Author: rafael
Date: Tue Feb 3 13:25:53 2015
New Revision: 228012
URL: http://llvm.org/viewvc/llvm-project?rev=228012&view=rev
Log:
Fix duplicated symbol error.
Modified:
llvm/trunk/include/llvm-c/lto.h
llvm/trunk/tools/lto/lto.cpp
Modified: llvm/trunk/include/llvm-c/lto.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/lto.h?rev=228012&r1=228011&r2=228012&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/lto.h (original)
+++ llvm/trunk/include/llvm-c/lto.h Tue Feb 3 13:25:53 2015
@@ -518,9 +518,7 @@ lto_codegen_compile_optimized(lto_code_g
* \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.
Modified: llvm/trunk/tools/lto/lto.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/lto.cpp?rev=228012&r1=228011&r2=228012&view=diff
==============================================================================
--- llvm/trunk/tools/lto/lto.cpp (original)
+++ llvm/trunk/tools/lto/lto.cpp Tue Feb 3 13:25:53 2015
@@ -330,3 +330,5 @@ bool lto_codegen_compile_to_file(lto_cod
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; }
More information about the llvm-commits
mailing list