Skip to content

Commit

Permalink
Fix duplicated symbol error.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228012 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
espindola committed Feb 3, 2015
1 parent f4e2998 commit f2e1126
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions include/llvm-c/lto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions tools/lto/lto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

0 comments on commit f2e1126

Please sign in to comment.