Fix duplicated symbol error.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Feb 2015 19:25:53 +0000 (19:25 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Feb 2015 19:25:53 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228012 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm-c/lto.h
tools/lto/lto.cpp

index 3aaf818e3dfce63c84bd6548c306d0be1108cf7c..6df6e1716adde1b062499fa70e3042942d079392 100644 (file)
@@ -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.
index 80dca6b4d46b1139aaae381bdd1abc7c56a055cf..3a336526e6b301babc40e9f31d53b75c2309deef 100644 (file)
@@ -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; }