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/ProfileInfoLoaderPass.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/ProfileInfoLoaderPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp index 9a597a27e4c..9697de8cdde 100644 --- a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -32,8 +32,9 @@ namespace { class VISIBILITY_HIDDEN LoaderPass : public ModulePass, public ProfileInfo { std::string Filename; public: + static const int ID; // Class identification, replacement for typeinfo LoaderPass(const std::string &filename = "") - : Filename(filename) { + : ModulePass((intptr_t)&ID), Filename(filename) { if (filename.empty()) Filename = ProfileInfoFilename; } @@ -49,6 +50,7 @@ namespace { virtual bool runOnModule(Module &M); }; + const int LoaderPass::ID = 0; RegisterPass<LoaderPass> X("profile-loader", "Load profile information from llvmprof.out"); |

