Sink the collection of return instructions until after *all*
[oota-llvm.git] / lib / Transforms / Utils / InstructionNamer.cpp
index 522439c04be2aac78467773a86b2dcd7d1628ab8..45c15de9437f31ce4a072d966504ce551ec8ecc2 100644 (file)
@@ -23,7 +23,9 @@ using namespace llvm;
 namespace {
   struct InstNamer : public FunctionPass {
     static char ID; // Pass identification, replacement for typeid
-    InstNamer() : FunctionPass(ID) {}
+    InstNamer() : FunctionPass(ID) {
+      initializeInstNamerPass(*PassRegistry::getPassRegistry());
+    }
     
     void getAnalysisUsage(AnalysisUsage &Info) const {
       Info.setPreservesAll();
@@ -51,7 +53,7 @@ namespace {
 }
 
 INITIALIZE_PASS(InstNamer, "instnamer", 
-                "Assign names to anonymous instructions", false, false);
+                "Assign names to anonymous instructions", false, false)
 char &llvm::InstructionNamerID = InstNamer::ID;
 //===----------------------------------------------------------------------===//
 //