@@ -850,11 +850,14 @@ getOutputStream(CompilerInstance &ci, llvm::StringRef inFile,
850
850
// / \param [in] tm Target machine to aid the code-gen pipeline set-up
851
851
// / \param [in] act Backend act to run (assembly vs machine-code generation)
852
852
// / \param [in] llvmModule LLVM module to lower to assembly/machine-code
853
+ // / \param [in] codeGenOpts options configuring codegen pipeline
853
854
// / \param [out] os Output stream to emit the generated code to
854
- static void generateMachineCodeOrAssemblyImpl (
855
- clang::DiagnosticsEngine &diags, llvm::TargetMachine &tm,
856
- BackendActionTy act, llvm::Module &llvmModule, llvm::raw_pwrite_stream &os,
857
- const CodeGenOptions &codeGenOpts) {
855
+ static void generateMachineCodeOrAssemblyImpl (clang::DiagnosticsEngine &diags,
856
+ llvm::TargetMachine &tm,
857
+ BackendActionTy act,
858
+ llvm::Module &llvmModule,
859
+ const CodeGenOptions &codeGenOpts,
860
+ llvm::raw_pwrite_stream &os) {
858
861
assert (((act == BackendActionTy::Backend_EmitObj) ||
859
862
(act == BackendActionTy::Backend_EmitAssembly)) &&
860
863
" Unsupported action" );
@@ -1232,8 +1235,8 @@ void CodeGenAction::executeAction() {
1232
1235
if (action == BackendActionTy::Backend_EmitAssembly ||
1233
1236
action == BackendActionTy::Backend_EmitObj) {
1234
1237
generateMachineCodeOrAssemblyImpl (
1235
- diags, *tm, action, *llvmModule,
1236
- ci.isOutputStreamNull () ? *os : ci.getOutputStream (), codeGenOpts );
1238
+ diags, *tm, action, *llvmModule, codeGenOpts,
1239
+ ci.isOutputStreamNull () ? *os : ci.getOutputStream ());
1237
1240
return ;
1238
1241
}
1239
1242
}
0 commit comments