Skip to content

Commit 913c5b4

Browse files
committed
clang -cc1as: Remove a redundant initSections call
`Parser->Run(Opts.NoInitialTextSection)` calls initSections. Remove a redundant initSections to remove an extra FT_Align fragment, observed when investigating a missing MCOrgFragment relaxation issue ClangBuiltLinux/linux#2116
1 parent 5dfc2d4 commit 913c5b4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

clang/tools/driver/cc1as_main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ static bool ExecuteAssemblerImpl(AssemblerInvocation &Opts,
577577
Triple T(Opts.Triple);
578578
Str.reset(TheTarget->createMCObjectStreamer(
579579
T, Ctx, std::move(MAB), std::move(OW), std::move(CE), *STI));
580-
Str->initSections(Opts.NoExecStack, *STI);
581580
if (T.isOSBinFormatMachO() && T.isOSDarwin()) {
582581
Triple *TVT = Opts.DarwinTargetVariantTriple
583582
? &*Opts.DarwinTargetVariantTriple

0 commit comments

Comments
 (0)