Delete libSyntax

This commit is contained in:
Robert Widmann
2022-11-16 13:31:41 -08:00
parent 980d40951f
commit 4c162b2aeb
74 changed files with 22 additions and 8938 deletions

View File

@@ -57,10 +57,9 @@
#include "swift/Strings.h"
#include "swift/Subsystems.h"
#include "swift/SymbolGraphGen/SymbolGraphOptions.h"
#include "swift/Syntax/References.h"
#include "swift/Syntax/SyntaxArena.h"
#include "clang/AST/Type.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/IntrusiveRefCntPtr.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringMap.h"
#include "llvm/ADT/StringSwitch.h"
@@ -558,8 +557,6 @@ struct ASTContext::Implementation {
llvm::FoldingSet<SILLayout> SILLayouts;
RC<syntax::SyntaxArena> TheSyntaxArena;
llvm::DenseMap<OverrideSignatureKey, GenericSignature> overrideSigCache;
Optional<ClangTypeConverter> Converter;
@@ -582,7 +579,6 @@ struct ASTContext::Implementation {
ASTContext::Implementation::Implementation()
: IdentifierTable(Allocator),
TheSyntaxArena(new syntax::SyntaxArena()),
IntrinsicScratchContext(new llvm::LLVMContext())
{}
ASTContext::Implementation::~Implementation() {
@@ -750,10 +746,6 @@ void ASTContext::setStatsReporter(UnifiedStatsReporter *stats) {
Stats = stats;
}
RC<syntax::SyntaxArena> ASTContext::getSyntaxArena() const {
return getImpl().TheSyntaxArena;
}
/// getIdentifier - Return the uniqued and AST-Context-owned version of the
/// specified string.
Identifier ASTContext::getIdentifier(StringRef Str) const {