diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-11 05:05:02 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-12-11 05:05:02 +0000 |
commit | fc188b95b81332c12043173c7f517341c6ad27a9 (patch) | |
tree | 94471c5176d11b06053b4b0a773dcfb9bfdc490a | |
parent | f19ae4c9db16e8d82f7e4571cabe3f1470036461 (diff) |
IncludeFile hack to pull in BasicAliasAnalysis whenever AliasAnalysis.h
is included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10396 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Analysis/AliasAnalysis.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/AliasAnalysis.h b/include/llvm/Analysis/AliasAnalysis.h index dc484f5df5..b0e9b23ab1 100644 --- a/include/llvm/Analysis/AliasAnalysis.h +++ b/include/llvm/Analysis/AliasAnalysis.h @@ -31,6 +31,7 @@ #define LLVM_ANALYSIS_ALIAS_ANALYSIS_H #include "llvm/Support/CallSite.h" +#include "llvm/Pass.h" namespace llvm { @@ -159,6 +160,14 @@ public: const Value *Ptr, unsigned Size); }; +// Because of the way .a files work, we must force the BasicAA implementation to +// be pulled in if the AliasAnalysis header is included. Otherwise we run +// the risk of AliasAnalysis being used, but the default implementation not +// being linked into the tool that uses it. +// +extern void BasicAAStub(); +static IncludeFile HDR_INCLUDE_BASICAA_CPP((void*)&BasicAAStub); + } // End llvm namespace #endif |