21
21
#include " llvm/ADT/DenseMap.h"
22
22
#include " llvm/Support/Debug.h"
23
23
24
- using namespace llvm ;
25
-
26
24
namespace swift {
27
25
28
26
class SILModule ;
@@ -32,7 +30,8 @@ class ClassHierarchyAnalysis : public SILAnalysis {
32
30
typedef SmallVector<ClassDecl *, 8 > ClassList;
33
31
typedef SmallPtrSet<ClassDecl *, 32 > ClassSet;
34
32
typedef SmallVector<NominalTypeDecl *, 8 > NominalTypeList;
35
- typedef DenseMap<ProtocolDecl *, NominalTypeList> ProtocolImplementations;
33
+ typedef llvm::DenseMap<ProtocolDecl *, NominalTypeList>
34
+ ProtocolImplementations;
36
35
37
36
ClassHierarchyAnalysis (SILModule *Mod)
38
37
: SILAnalysis(AnalysisKind::ClassHierarchy), M(Mod) {
@@ -101,10 +100,10 @@ class ClassHierarchyAnalysis : public SILAnalysis {
101
100
SILModule *M;
102
101
103
102
// / A cache that maps a class to all of its known direct subclasses.
104
- DenseMap<ClassDecl*, ClassList> DirectSubclassesCache;
103
+ llvm:: DenseMap<ClassDecl*, ClassList> DirectSubclassesCache;
105
104
106
105
// / A cache that maps a class to all of its known indirect subclasses.
107
- DenseMap<ClassDecl*, ClassList> IndirectSubclassesCache;
106
+ llvm:: DenseMap<ClassDecl*, ClassList> IndirectSubclassesCache;
108
107
109
108
// / A cache that maps a protocol to all of its known implementations.
110
109
ProtocolImplementations ProtocolImplementationsCache;
0 commit comments