aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/LibCallAliasAnalysis.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-08-05 23:42:04 +0000
committerOwen Anderson <resistor@mac.com>2010-08-05 23:42:04 +0000
commit0e63653ab0d25d579ad99948db606d8723d271dd (patch)
tree8b23d84cacaae3aee3fe11becc219685443905c5 /include/llvm/Analysis/LibCallAliasAnalysis.h
parentc3434e68b34647d2a84f99656efb948d4ba6f0c7 (diff)
downloadexternal_llvm-0e63653ab0d25d579ad99948db606d8723d271dd.tar.gz
external_llvm-0e63653ab0d25d579ad99948db606d8723d271dd.tar.bz2
external_llvm-0e63653ab0d25d579ad99948db606d8723d271dd.zip
Don't use PassInfo* as a type identifier for passes. Instead, use the address of the static
ID member as the sole unique type identifier. Clean up APIs related to this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LibCallAliasAnalysis.h')
-rw-r--r--include/llvm/Analysis/LibCallAliasAnalysis.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/LibCallAliasAnalysis.h b/include/llvm/Analysis/LibCallAliasAnalysis.h
index 37abb77dc2..c9adf3f36a 100644
--- a/include/llvm/Analysis/LibCallAliasAnalysis.h
+++ b/include/llvm/Analysis/LibCallAliasAnalysis.h
@@ -28,9 +28,9 @@ namespace llvm {
LibCallInfo *LCI;
explicit LibCallAliasAnalysis(LibCallInfo *LC = 0)
- : FunctionPass(&ID), LCI(LC) {
+ : FunctionPass(ID), LCI(LC) {
}
- explicit LibCallAliasAnalysis(const void *ID, LibCallInfo *LC)
+ explicit LibCallAliasAnalysis(char &ID, LibCallInfo *LC)
: FunctionPass(ID), LCI(LC) {
}
~LibCallAliasAnalysis();
@@ -55,8 +55,8 @@ namespace llvm {
/// an analysis interface through multiple inheritance. If needed, it
/// should override this to adjust the this pointer as needed for the
/// specified pass info.
- virtual void *getAdjustedAnalysisPointer(const PassInfo *PI) {
- if (PI->isPassID(&AliasAnalysis::ID))
+ virtual void *getAdjustedAnalysisPointer(const void *PI) {
+ if (PI == &AliasAnalysis::ID)
return (AliasAnalysis*)this;
return this;
}