mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add a basic Class Hierarchy Analysis. At this point it only lists classes that are inherited from in this module.
Swift SVN r20710
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#include "swift/SILAnalysis/DominanceAnalysis.h"
|
||||
#include "swift/SILAnalysis/IVAnalysis.h"
|
||||
#include "swift/SILAnalysis/PostOrderAnalysis.h"
|
||||
#include "swift/SILAnalysis/ClassHierarchyAnalysis.h"
|
||||
#include "swift/AST/Module.h"
|
||||
#include "swift/AST/SILOptions.h"
|
||||
#include "swift/SIL/SILModule.h"
|
||||
@@ -63,3 +64,8 @@ SILAnalysis *swift::createInductionVariableAnalysis(SILModule *M) {
|
||||
SILAnalysis *swift::createPostOrderAnalysis(SILModule *M) {
|
||||
return new PostOrderAnalysis(M);
|
||||
}
|
||||
|
||||
|
||||
SILAnalysis *swift::createClassHierarchyAnalysis(SILModule *M) {
|
||||
return new ClassHierarchyAnalysis(M);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user