diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-11 00:15:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-11 00:15:13 +0000 |
commit | 2d643ef32891859ec73b6eea2959748f5ebc3af7 (patch) | |
tree | 690e4cd0d8b9bae6d4afca6b1f6c6c5056d9c8dc /include | |
parent | 4ee87398e808534577ed1be52f2b48a6130b2c0e (diff) | |
download | external_llvm-2d643ef32891859ec73b6eea2959748f5ebc3af7.zip external_llvm-2d643ef32891859ec73b6eea2959748f5ebc3af7.tar.gz external_llvm-2d643ef32891859ec73b6eea2959748f5ebc3af7.tar.bz2 |
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')
-rw-r--r-- | include/llvm-c/lto.h | 7 |
1 files changed, 7 insertions, 0 deletions
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. */ |