From 98197e55c10176c3ef9100f7d852abbd2347225f Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 10 Aug 2010 18:55:09 +0000 Subject: Make it possible to set the flags passed to the assembler. Nick, please review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110705 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/lto/lto.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/lto/lto.cpp') diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index a299dd187d..703447b499 100644 --- a/tools/lto/lto.cpp +++ b/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 -- cgit v1.2.3