Skip to content

Commit ee40244

Browse files
committed
R4: Addressing review comments
1 parent c050671 commit ee40244

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

flang/lib/Frontend/FrontendActions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,8 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
10211021
llvm::ModulePassManager mpm;
10221022
// The module summary should be emitted by default for regular LTO
10231023
// except for ld64 targets.
1024-
bool emitSummary = opts.PrepareForFullLTO && (triple.getVendor() != llvm::Triple::Apple);
1024+
bool emitSummary =
1025+
opts.PrepareForFullLTO && (triple.getVendor() != llvm::Triple::Apple);
10251026
if (opts.PrepareForFatLTO)
10261027
mpm = pb.buildFatLTODefaultPipeline(level, opts.PrepareForThinLTO,
10271028
emitSummary);

flang/test/Driver/lto-bc.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
! CHECK-NOT: ^{{.*}} = blockcount:
1313

1414
! RUN: %flang -flto=thin %s -c -o - | llvm-dis -o - | FileCheck %s --check-prefix=THIN
15+
! THIN: define void @_QQmain()
16+
! THIN-NEXT: ret void
17+
! THIN-NEXT: }
1518
! THIN-NOT: !{{.*}} = !{i32 1, !"ThinLTO", i32 0}
1619
! THIN-NOT: ^{{.*}} = module:
1720
! THIN-NOT: ^{{.*}} = gv: (name:

0 commit comments

Comments
 (0)