diff options
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"); |