diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-09 21:09:46 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-09 21:09:46 +0000 |
commit | cbb170d057aa6692b19f577b1e09a6c1c7a26969 (patch) | |
tree | 5d9b5d43beeb4376d21195edc7f2a0389c74aa70 /include/llvm-c | |
parent | 3221834f8a6216d01a7e1d1201bd14eafd79cff3 (diff) | |
download | llvm-cbb170d057aa6692b19f577b1e09a6c1c7a26969.tar.gz llvm-cbb170d057aa6692b19f577b1e09a6c1c7a26969.tar.bz2 llvm-cbb170d057aa6692b19f577b1e09a6c1c7a26969.tar.xz |
Make it possible to set the target triple and expose that with an option in the
gold plugin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110604 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r-- | include/llvm-c/lto.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm-c/lto.h b/include/llvm-c/lto.h index 93f37605a4..d16a38bd3b 100644 --- a/include/llvm-c/lto.h +++ b/include/llvm-c/lto.h @@ -135,6 +135,12 @@ lto_module_dispose(lto_module_t mod); extern const char* lto_module_get_target_triple(lto_module_t mod); +/** + * Sets triple string with which the object will be codegened. + */ +extern void +lto_module_set_target_triple(lto_module_t mod, const char *triple); + /** * Returns the number of symbols in the object module. |