summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-08-11 00:15:13 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-08-11 00:15:13 +0000
commit2d643ef32891859ec73b6eea2959748f5ebc3af7 (patch)
tree690e4cd0d8b9bae6d4afca6b1f6c6c5056d9c8dc /include/llvm-c
parent4ee87398e808534577ed1be52f2b48a6130b2c0e (diff)
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
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/lto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h
index 34231a22a57..67b27a8e665 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.
*/