mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user