Revert "Add a mechanism to let cross-module-optimization add additional TBD symbols."

This reverts commit c55f040308.

It's not needed anymore because CMO does not introduce public symbols when a TBD file is emitted.
This commit is contained in:
Erik Eckstein
2022-04-21 10:38:26 +02:00
parent 0cdbd3ea7a
commit 45acb912a9
14 changed files with 48 additions and 121 deletions

View File

@@ -38,7 +38,6 @@
#include "swift/SIL/SILVTable.h"
#include "swift/SIL/SILWitnessTable.h"
#include "swift/SIL/TypeLowering.h"
#include "swift/TBDGen/TBDGen.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/FoldingSet.h"
#include "llvm/ADT/MapVector.h"
@@ -387,10 +386,6 @@ private:
/// Folding set for key path patterns.
llvm::FoldingSet<KeyPathPattern> KeyPathPatterns;
/// Symbols (e.g. function names) which are made public by the
/// CrossModuleOptimization pass and therefore must be included in the TBD file.
TBDSymbolSetPtr publicCMOSymbols;
public:
~SILModule();
@@ -560,12 +555,6 @@ public:
const SILOptions &getOptions() const { return Options; }
/// Return the symbols (e.g. function names) which are made public by the
/// CrossModuleOptimization pass and therefore must be included in the TBD file.
TBDSymbolSetPtr getPublicCMOSymbols() { return publicCMOSymbols; }
void addPublicCMOSymbol(StringRef symbol);
using iterator = FunctionListType::iterator;
using const_iterator = FunctionListType::const_iterator;
FunctionListType &getFunctionList() { return functions; }