From 2d643ef32891859ec73b6eea2959748f5ebc3af7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 11 Aug 2010 00:15:13 +0000 Subject: Make it possible to set the cpu used for codegen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110759 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/lto.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/llvm-c') diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 34231a2..67b27a8 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -206,6 +206,13 @@ lto_codegen_set_pic_model(lto_code_gen_t cg, lto_codegen_model); /** + * Sets the cpu to generate code for. + */ +extern void +lto_codegen_set_cpu(lto_code_gen_t cg, const char *cpu); + + +/** * Sets the location of the "gcc" to run. If not set, libLTO will search for * "gcc" on the path. */ -- cgit v1.1