* Perform inlining of external function references in M based on a simple * cost based analysis. */
| 156 | * cost based analysis. |
| 157 | */ |
| 158 | void |
| 159 | llvm_inline(LLVMModuleRef M) |
| 160 | { |
| 161 | llvm::Module *mod = llvm::unwrap(M); |
| 162 | |
| 163 | std::unique_ptr<ImportMapTy> globalsToInline = llvm_build_inline_plan(mod); |
| 164 | if (!globalsToInline) |
| 165 | return; |
| 166 | llvm_execute_inline_plan(mod, globalsToInline.get()); |
| 167 | } |
| 168 | |
| 169 | /* |
| 170 | * Build information necessary for inlining external function references in |
no test coverage detected