File tree Expand file tree Collapse file tree 5 files changed +0
-156
lines changed Expand file tree Collapse file tree 5 files changed +0
-156
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 34
34
35
35
namespace swift {
36
36
37
- class SyntaxASTMap ;
38
-
39
37
namespace syntax {
40
38
41
39
struct SyntaxVisitor ;
@@ -58,7 +56,6 @@ const auto NoParent = llvm::None;
58
56
// / their children.
59
57
class Syntax {
60
58
friend struct SyntaxFactory ;
61
- friend class swift ::SyntaxASTMap;
62
59
63
60
protected:
64
61
// / A strong reference to the root node of the tree in which this piece of
Original file line number Diff line number Diff line change @@ -295,30 +295,4 @@ class SyntaxData final
295
295
} // end namespace syntax
296
296
} // end namespace swift
297
297
298
- // DenseMapInfo for RC<SyntaxData>, used for a Syntax Node -> lib/AST mapping.
299
- namespace llvm {
300
- using SD = swift::syntax::SyntaxData;
301
- using RCSD = swift::RC<SD>;
302
- template <> struct DenseMapInfo <RCSD> {
303
- static inline RCSD getEmptyKey () {
304
- return SD::make (nullptr , nullptr , 0 );
305
- }
306
- static inline RCSD getTombstoneKey () {
307
- return SD::make (nullptr , nullptr , 0 );
308
- }
309
- static unsigned getHashValue (const RCSD Value) {
310
- unsigned H = 0 ;
311
- H ^= DenseMapInfo<uintptr_t >::getHashValue (reinterpret_cast <const uintptr_t >(Value->getRaw ().get ()));
312
- H ^= DenseMapInfo<uintptr_t >::getHashValue (reinterpret_cast <const uintptr_t >(Value->getParent ()));
313
- H ^= DenseMapInfo<swift::syntax::CursorIndex>::getHashValue (Value->getIndexInParent ());
314
- return H;
315
- }
316
- static bool isEqual (const RCSD LHS, const RCSD RHS) {
317
- return LHS->getRaw ().get () == RHS->getRaw ().get () &&
318
- LHS->getParent () == RHS->getParent () &&
319
- LHS->getIndexInParent () == RHS->getIndexInParent ();
320
- }
321
- };
322
- }
323
-
324
298
#endif // SWIFT_SYNTAX_SYNTAXDATA_H
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ add_swift_host_library(swiftAST STATIC
73
73
ProtocolConformance.cpp
74
74
RawComment.cpp
75
75
RequirementEnvironment.cpp
76
- SyntaxASTMap.cpp
77
76
SILLayout.cpp
78
77
Stmt.cpp
79
78
SubstitutionMap.cpp
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments