Make PIC16 overlay a loadable pass.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85134 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp b/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
index 197c398..c94d7fa 100644
--- a/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
+++ b/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
@@ -25,7 +25,8 @@
 
 namespace llvm {
   char PIC16FrameOverlay::ID = 0;
-  ModulePass *createPIC16OverlayPass() { return new PIC16FrameOverlay(); }
+  static RegisterPass<PIC16FrameOverlay>
+  X("pic16overlay", "PIC16 Frame Overlay Analysis");
 }
 
 void PIC16FrameOverlay::getAnalysisUsage(AnalysisUsage &AU) const {