diff options
author | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-05-01 21:15:47 +0000 |
commit | 09f162ca6a10446d6377b957f3a58ac92ce38306 (patch) | |
tree | b41e816449956582e447ab616707e1afbf1a88fe /llvm/lib/Analysis/AliasDebugger.cpp | |
parent | a612049dd849d1e659eeaeefbcf82147af7f669f (diff) | |
download | bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.tar.gz bcm5719-llvm-09f162ca6a10446d6377b957f3a58ac92ce38306.zip |
Do not use typeinfo to identify pass in pass manager.
llvm-svn: 36632
Diffstat (limited to 'llvm/lib/Analysis/AliasDebugger.cpp')
-rw-r--r-- | llvm/lib/Analysis/AliasDebugger.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/AliasDebugger.cpp b/llvm/lib/Analysis/AliasDebugger.cpp index 3f7f1cccae0..a4df97a196f 100644 --- a/llvm/lib/Analysis/AliasDebugger.cpp +++ b/llvm/lib/Analysis/AliasDebugger.cpp @@ -40,6 +40,9 @@ namespace { std::set<const Value*> Vals; public: + static const int ID; // Class identification, replacement for typeinfo + AliasDebugger() : ModulePass((intptr_t)&ID) {} + bool runOnModule(Module &M) { InitializeAliasAnalysis(this); // set up super class @@ -119,6 +122,7 @@ namespace { }; + const int AliasDebugger::ID = 0; RegisterPass<AliasDebugger> X("debug-aa", "AA use debugger"); RegisterAnalysisGroup<AliasAnalysis> Y(X); } |