diff options
| author | Devang Patel <dpatel@apple.com> | 2008-03-19 00:48:41 +0000 |
|---|---|---|
| committer | Devang Patel <dpatel@apple.com> | 2008-03-19 00:48:41 +0000 |
| commit | af75ab81303cd875704ffbe4e4115badbcd6bd93 (patch) | |
| tree | f3a0147ea36507c6d99f75fc93fd9f5d203b9a79 /llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | |
| parent | 8800ae68a0dfc060d404cad723bd23215d4a1f48 (diff) | |
| download | bcm5719-llvm-af75ab81303cd875704ffbe4e4115badbcd6bd93.tar.gz bcm5719-llvm-af75ab81303cd875704ffbe4e4115badbcd6bd93.zip | |
Do not use virtual function to identify an analysis pass.
llvm-svn: 48520
Diffstat (limited to 'llvm/lib/Analysis/ProfileInfoLoaderPass.cpp')
| -rw-r--r-- | llvm/lib/Analysis/ProfileInfoLoaderPass.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp index e18625f8e76..12b18f736c2 100644 --- a/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp +++ b/llvm/lib/Analysis/ProfileInfoLoaderPass.cpp @@ -34,7 +34,7 @@ namespace { public: static char ID; // Class identification, replacement for typeinfo explicit LoaderPass(const std::string &filename = "") - : ModulePass((intptr_t)&ID), Filename(filename) { + : ModulePass((intptr_t)&ID, true), Filename(filename) { if (filename.empty()) Filename = ProfileInfoFilename; } @@ -46,9 +46,6 @@ namespace { return "Profiling information loader"; } - /// isAnalysis - Return true if this pass is implementing an analysis pass. - virtual bool isAnalysis() const { return true; } - /// run - Load the profile information from the specified file. virtual bool runOnModule(Module &M); }; |

