Sink the collection of return instructions until after *all*
[oota-llvm.git] / lib / Transforms / Utils / InstructionNamer.cpp
index d8d01c9a4bada4ad291f92baec9e3b77d89a910a..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();