The BLX instruction is encoded differently than the BL, because why not? In
[oota-llvm.git] / lib / Analysis / ProfileEstimatorPass.cpp
index e3aad60b9594e30c5ab54c5fd907b67f7fbdaa14..2b9afe307d1aefc00ca59d323034049bccfe1505 100644 (file)
@@ -39,7 +39,8 @@ namespace {
   public:
     static char ID; // Class identification, replacement for typeinfo
     explicit ProfileEstimatorPass(const double execcount = 0)
-      : FunctionPass(ID), ExecCount(execcount) {
+        : FunctionPass(ID), ExecCount(execcount) {
+      initializeProfileEstimatorPassPass(*PassRegistry::getPassRegistry());
       if (execcount == 0) ExecCount = LoopWeight;
     }