Make PIC16 overlay a loadable pass.

llvm-svn: 85134
This commit is contained in:
Sanjiv Gupta 2009-10-26 18:22:59 +00:00
parent 9027c8f10f
commit 7ea628e8db
2 changed files with 4 additions and 4 deletions

View File

@ -8,9 +8,8 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
TARGET = PIC16
LIBRARYNAME = LLVMpic16passes
BUILD_ARCHIVE = 1
LIBRARYNAME = PIC16Passes
LOADABLE_MODULE = 1
include $(LEVEL)/Makefile.common

View File

@ -25,7 +25,8 @@ using namespace llvm;
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 {