diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-10 18:55:09 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-08-10 18:55:09 +0000 |
| commit | 004564663381f966d9c11cbd2db0451e3971d610 (patch) | |
| tree | ae77633490eed3037434edf9c497f8a88eeea1ea /llvm/tools/lto/lto.cpp | |
| parent | 62eb9a8e843cd9a1b07b7204a3cb3a35d4662b60 (diff) | |
| download | bcm5719-llvm-004564663381f966d9c11cbd2db0451e3971d610.tar.gz bcm5719-llvm-004564663381f966d9c11cbd2db0451e3971d610.zip | |
Make it possible to set the flags passed to the assembler.
Nick, please review.
llvm-svn: 110705
Diffstat (limited to 'llvm/tools/lto/lto.cpp')
| -rw-r--r-- | llvm/tools/lto/lto.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/tools/lto/lto.cpp b/llvm/tools/lto/lto.cpp index a299dd187d6..703447b499f 100644 --- a/llvm/tools/lto/lto.cpp +++ b/llvm/tools/lto/lto.cpp @@ -218,6 +218,16 @@ void lto_codegen_set_assembler_path(lto_code_gen_t cg, const char* path) cg->setAssemblerPath(path); } + +// +// sets extra arguments that libLTO should pass to the assembler +// +void lto_codegen_set_assembler_args(lto_code_gen_t cg, const char** args, + int nargs) +{ + cg->setAssemblerArgs(args, nargs); +} + // // adds to a list of all global symbols that must exist in the final // generated code. If a function is not listed there, it might be |

