Skip to content

Commit 4867c5f

Browse files
committed
NFC: Remove unused member from UniversalLinkageInfo
1 parent 2e40295 commit 4867c5f

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

include/swift/IRGen/Linking.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,10 @@ class UniversalLinkageInfo {
5353
/// be promoted to public external. Used by the LLDB expression evaluator.
5454
bool ForcePublicDecls;
5555

56-
bool IsWholeModule;
57-
5856
explicit UniversalLinkageInfo(IRGenModule &IGM);
5957

6058
UniversalLinkageInfo(const llvm::Triple &triple, bool hasMultipleIGMs,
61-
bool forcePublicDecls, bool isWholeModule);
59+
bool forcePublicDecls);
6260

6361
/// In case of multiple llvm modules (in multi-threaded compilation) all
6462
/// private decls must be visible from other files.

lib/IRGen/Linking.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,14 @@ bool swift::irgen::useDllStorage(const llvm::Triple &triple) {
7474

7575
UniversalLinkageInfo::UniversalLinkageInfo(IRGenModule &IGM)
7676
: UniversalLinkageInfo(IGM.Triple, IGM.IRGen.hasMultipleIGMs(),
77-
IGM.IRGen.Opts.ForcePublicLinkage,
78-
IGM.getSILModule().isWholeModule()) {}
77+
IGM.IRGen.Opts.ForcePublicLinkage) {}
7978

8079
UniversalLinkageInfo::UniversalLinkageInfo(const llvm::Triple &triple,
8180
bool hasMultipleIGMs,
82-
bool forcePublicDecls,
83-
bool isWholeModule)
81+
bool forcePublicDecls)
8482
: IsELFObject(triple.isOSBinFormatELF()),
8583
UseDLLStorage(useDllStorage(triple)), HasMultipleIGMs(hasMultipleIGMs),
86-
ForcePublicDecls(forcePublicDecls), IsWholeModule(isWholeModule) {}
84+
ForcePublicDecls(forcePublicDecls) {}
8785

8886
/// Mangle this entity into the given buffer.
8987
void LinkEntity::mangle(SmallVectorImpl<char> &buffer) const {

lib/TBDGen/TBDGen.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -950,10 +950,9 @@ static void enumeratePublicSymbolsAndWrite(ModuleDecl *M, FileUnit *singleFile,
950950
llvm::raw_ostream *os,
951951
const TBDGenOptions &opts) {
952952
auto &ctx = M->getASTContext();
953-
auto isWholeModule = singleFile == nullptr;
954953
const auto &triple = ctx.LangOpts.Target;
955-
UniversalLinkageInfo linkInfo(triple, opts.HasMultipleIGMs, false,
956-
isWholeModule);
954+
UniversalLinkageInfo linkInfo(triple, opts.HasMultipleIGMs,
955+
/*forcePublicDecls*/ false);
957956

958957
llvm::MachO::InterfaceFile file;
959958
file.setFileType(llvm::MachO::FileType::TBD_V3);

0 commit comments

Comments
 (0)