Skip to content

Commit e5fecf6

Browse files
committed
Put new input argument before output argument
1 parent efe0c15 commit e5fecf6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

flang/lib/Frontend/FrontendActions.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,14 @@ getOutputStream(CompilerInstance &ci, llvm::StringRef inFile,
850850
/// \param [in] tm Target machine to aid the code-gen pipeline set-up
851851
/// \param [in] act Backend act to run (assembly vs machine-code generation)
852852
/// \param [in] llvmModule LLVM module to lower to assembly/machine-code
853+
/// \param [in] codeGenOpts options configuring codegen pipeline
853854
/// \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) {
858861
assert(((act == BackendActionTy::Backend_EmitObj) ||
859862
(act == BackendActionTy::Backend_EmitAssembly)) &&
860863
"Unsupported action");
@@ -1232,8 +1235,8 @@ void CodeGenAction::executeAction() {
12321235
if (action == BackendActionTy::Backend_EmitAssembly ||
12331236
action == BackendActionTy::Backend_EmitObj) {
12341237
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());
12371240
return;
12381241
}
12391242
}

0 commit comments

Comments
 (0)