Skip to content

Commit d1230f2

Browse files
authored
Merge pull request #14680 from bob-wilson/merge-fixup
Fix whitespace changes introduced during a merge conflict resolution
2 parents 7df748c + 43f8f18 commit d1230f2

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void swift::performLLVMOptimizations(IRGenOptions &Opts, llvm::Module *Module,
189189
PMBuilder.addExtension(PassManagerBuilder::EP_EnabledOnOptLevel0,
190190
addAddressSanitizerPasses);
191191
}
192-
192+
193193
if (Opts.Sanitizers & SanitizerKind::Thread) {
194194
PMBuilder.addExtension(PassManagerBuilder::EP_OptimizerLast,
195195
addThreadSanitizerPass);
@@ -657,7 +657,7 @@ static void embedBitcode(llvm::Module *M, const IRGenOptions &Opts)
657657
static void initLLVMModule(const IRGenModule &IGM) {
658658
auto *Module = IGM.getModule();
659659
assert(Module && "Expected llvm:Module for IR generation!");
660-
660+
661661
Module->setTargetTriple(IGM.Triple.str());
662662

663663
// Set the module's string representation.
@@ -736,7 +736,7 @@ static std::unique_ptr<llvm::Module> performIRGeneration(IRGenOptions &Opts,
736736

737737
// Run SIL level IRGen preparation passes.
738738
runIRGenPreparePasses(*SILMod, IGM);
739-
739+
740740
{
741741
SharedTimer timer("IRGen");
742742
// Emit the module contents.
@@ -884,7 +884,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
884884
}
885885
}
886886
} _igmDeleter(irgen);
887-
887+
888888
auto OutputIter = Opts.OutputFilenames.begin();
889889
bool IGMcreated = false;
890890

@@ -895,7 +895,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
895895
auto nextSF = dyn_cast<SourceFile>(File);
896896
if (!nextSF || nextSF->ASTStage < SourceFile::TypeChecked)
897897
continue;
898-
898+
899899
// There must be an output filename for each source file.
900900
// We ignore additional output filenames.
901901
if (OutputIter == Opts.OutputFilenames.end()) {
@@ -908,9 +908,9 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
908908
if (!targetMachine) continue;
909909

910910
// This (and the IGM itself) will get deleted by the IGMDeleter
911-
// as long as the IGM is registered with the IRGenerator.
911+
// as long as the IGM is registered with the IRGenerator.
912912
auto Context = new LLVMContext();
913-
913+
914914
// Create the IR emitter.
915915
IRGenModule *IGM = new IRGenModule(irgen, std::move(targetMachine),
916916
nextSF, *Context,
@@ -925,7 +925,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
925925
DidRunSILCodeGenPreparePasses = true;
926926
}
927927
}
928-
928+
929929
if (!IGMcreated) {
930930
// TODO: Check this already at argument parsing.
931931
Ctx.Diags.diagnose(SourceLoc(), diag::no_input_files_for_mt);
@@ -934,7 +934,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
934934

935935
// Emit the module contents.
936936
irgen.emitGlobalTopLevel();
937-
937+
938938
for (auto *File : M->getFiles()) {
939939
if (auto *SF = dyn_cast<SourceFile>(File)) {
940940
IRGenModule *IGM = irgen.getGenModule(SF);
@@ -945,7 +945,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
945945
});
946946
}
947947
}
948-
948+
949949
// Okay, emit any definitions that we suddenly need.
950950
irgen.emitLazyDefinitions();
951951

@@ -966,32 +966,32 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
966966

967967
// Emit symbols for eliminated dead methods.
968968
PrimaryGM->emitVTableStubs();
969-
969+
970970
// Verify type layout if we were asked to.
971971
if (!Opts.VerifyTypeLayoutNames.empty())
972972
PrimaryGM->emitTypeVerifier();
973-
973+
974974
std::for_each(Opts.LinkLibraries.begin(), Opts.LinkLibraries.end(),
975975
[&](LinkLibrary linkLib) {
976976
PrimaryGM->addLinkLibrary(linkLib);
977977
});
978-
978+
979979
// Hack to handle thunks eagerly synthesized by the Clang importer.
980980
swift::ModuleDecl *prev = nullptr;
981981
for (auto external : Ctx.ExternalDefinitions) {
982982
swift::ModuleDecl *next = external->getModuleContext();
983983
if (next == prev)
984984
continue;
985985
prev = next;
986-
986+
987987
if (next->getName() == M->getName())
988988
continue;
989-
989+
990990
next->collectLinkLibraries([&](LinkLibrary linkLib) {
991991
PrimaryGM->addLinkLibrary(linkLib);
992992
});
993993
}
994-
994+
995995
llvm::StringSet<> referencedGlobals;
996996

997997
for (auto it = irgen.begin(); it != irgen.end(); ++it) {
@@ -1019,7 +1019,7 @@ static void performParallelIRGeneration(IRGenOptions &Opts,
10191019
for (auto it = irgen.begin(); it != irgen.end(); ++it) {
10201020
IRGenModule *IGM = it->second;
10211021
llvm::Module *M = IGM->getModule();
1022-
1022+
10231023
// Update the linkage of shared functions/globals.
10241024
// If a shared function/global is referenced from another file it must have
10251025
// weak instead of linkonce linkage. Otherwise LLVM would remove the

0 commit comments

Comments
 (0)