From 09237b8968ce44b6d6620464c105fdf29195a263 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 1 Aug 2014 14:57:05 +0000 Subject: [PATCH] Remove lto_codegen_set_attr. It was never exported, so no functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214519 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/lto.h | 10 +--------- tools/lto/lto.cpp | 4 ---- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 51079896d7f..c525710ae1a 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -40,7 +40,7 @@ typedef bool lto_bool_t; * @{ */ -#define LTO_API_VERSION 11 +#define LTO_API_VERSION 10 /** * \since prior to LTO_API_VERSION=3 @@ -375,14 +375,6 @@ lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); extern void lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); -/** - * Sets attributes for the cpu to generate code for. - * - * \since LTO_API_VERSION=11 - */ -extern void -lto_codegen_set_attr(lto_code_gen_t cg, const char *attr); - /** * Sets the location of the assembler tool to run. If not set, libLTO diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index b401f9a7f19..5732996a160 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -222,10 +222,6 @@ void lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu) { return unwrap(cg)->setCpu(cpu); } -void lto_codegen_set_attr(lto_code_gen_t cg, const char *attr) { - return unwrap(cg)->setAttr(attr); -} - void lto_codegen_set_assembler_path(lto_code_gen_t cg, const char *path) { // In here only for backwards compatibility. We use MC now. } -- 2.34.1