|
17 | 17 | #include "swift/Basic/LLVM.h"
|
18 | 18 | #include "swift/Basic/NullablePtr.h"
|
19 | 19 | #include "swift/Basic/Range.h"
|
| 20 | +#include "swift/Basic/ReferenceDependencyKeys.h" |
20 | 21 | #include "llvm/ADT/Hashing.h"
|
21 | 22 | #include "llvm/Support/MD5.h"
|
22 | 23 | #include "llvm/Support/MemoryBuffer.h"
|
@@ -350,33 +351,6 @@ bool emitReferenceDependencies(DiagnosticEngine &diags, SourceFile *SF,
|
350 | 351 | // MARK: Enums
|
351 | 352 | //==============================================================================
|
352 | 353 |
|
353 |
| -/// Encode the current sorts of dependencies as kinds of nodes in the dependency |
354 |
| -/// graph, splitting the current *member* into \ref member and \ref |
355 |
| -/// potentialMember and adding \ref sourceFileProvide. |
356 |
| - |
357 |
| -enum class NodeKind { |
358 |
| - topLevel, |
359 |
| - nominal, |
360 |
| - /// In the status quo scheme, *member* dependencies could have blank names |
361 |
| - /// for the member, to indicate that the provider might add members. |
362 |
| - /// This code uses a separate kind, \ref potentialMember. The holder field is |
363 |
| - /// unused. |
364 |
| - potentialMember, |
365 |
| - /// Corresponding to the status quo *member* dependency with a non-blank |
366 |
| - /// member. |
367 |
| - member, |
368 |
| - dynamicLookup, |
369 |
| - externalDepend, |
370 |
| - sourceFileProvide, |
371 |
| - /// For iterating through the NodeKinds. |
372 |
| - kindCount |
373 |
| -}; |
374 |
| - |
375 |
| -/// Used for printing out NodeKinds to dot files, and dumping nodes for |
376 |
| -/// debugging. |
377 |
| -const std::string NodeKindNames[]{ |
378 |
| - "topLevel", "nominal", "potentialMember", "member", |
379 |
| - "dynamicLookup", "externalDepend", "sourceFileProvide"}; |
380 | 354 |
|
381 | 355 | /// Instead of the status quo scheme of two kinds of "Depends", cascading and
|
382 | 356 | /// non-cascading this code represents each entity ("Provides" in the status
|
|
0 commit comments