Handle null a bit more carefully.
[oota-llvm.git] / lib / Analysis / ProfileInfo.cpp
index 8cb1e0017646ceb25b4bdbacaf894eb57f12a3e1..d5cd3cd9862302f3686c072fd40b44bb289ba883 100644 (file)
@@ -12,6 +12,7 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include "llvm/Analysis/Passes.h"
 #include "llvm/Analysis/ProfileInfo.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/CFG.h"
@@ -90,3 +91,5 @@ namespace {
   // Declare that we implement the ProfileInfo interface
   RegisterAnalysisGroup<ProfileInfo, NoProfileInfo, true> Y;
 }  // End of anonymous namespace
+
+ImmutablePass *llvm::createNoProfileInfoPass() { return new NoProfileInfo(); }