Do not use virtual function to identify an analysis pass.
[oota-llvm.git] / lib / Analysis / ProfileInfoLoaderPass.cpp
index e18625f8e76514ee814b2299ecdec06363f44dd0..12b18f736c25461f3c3e279b0288ff2ac5c162b1 100644 (file)
@@ -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);
   };