diff options
Diffstat (limited to 'lib/Analysis/BasicAliasAnalysis.cpp')
-rw-r--r-- | lib/Analysis/BasicAliasAnalysis.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp index 9b8eb42545..c50758541e 100644 --- a/lib/Analysis/BasicAliasAnalysis.cpp +++ b/lib/Analysis/BasicAliasAnalysis.cpp @@ -14,6 +14,7 @@ //===----------------------------------------------------------------------===// #include "llvm/Analysis/AliasAnalysis.h" +#include "llvm/Analysis/Passes.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" #include "llvm/Function.h" @@ -80,6 +81,7 @@ namespace { RegisterAnalysisGroup<AliasAnalysis, NoAA> V; } // End of anonymous namespace +ImmutablePass *llvm::createNoAAPass() { return new NoAA(); } namespace { /// BasicAliasAnalysis - This is the default alias analysis implementation. @@ -124,6 +126,10 @@ namespace { RegisterAnalysisGroup<AliasAnalysis, BasicAliasAnalysis, true> Y; } // End of anonymous namespace +ImmutablePass *llvm::createBasicAliasAnalysisPass() { + return new BasicAliasAnalysis(); +} + // hasUniqueAddress - Return true if the specified value points to something // with a unique, discernable, address. static inline bool hasUniqueAddress(const Value *V) { |