Reference RegionPass to stop it being eliminated.
[oota-llvm.git] / include / llvm / CodeGen / LiveVariables.h
index c8182e073b9c7eb27bfd132509794e733a7f9cd1..ea32efaf0c15860813ba59a1e3d8573f73721439 100644 (file)
@@ -46,7 +46,9 @@ class TargetRegisterInfo;
 class LiveVariables : public MachineFunctionPass {
 public:
   static char ID; // Pass identification, replacement for typeid
-  LiveVariables() : MachineFunctionPass(ID) {}
+  LiveVariables() : MachineFunctionPass(ID) {
+    initializeLiveVariablesPass(*PassRegistry::getPassRegistry());
+  }
 
   /// VarInfo - This represents the regions where a virtual register is live in
   /// the program.  We represent this with three different pieces of