[llvm-commits] [llvm] r85134 - in /llvm/trunk/lib/Target/PIC16/PIC16Passes: Makefile PIC16Overlay.cpp
Sanjiv Gupta
sanjiv.gupta at microchip.com
Mon Oct 26 11:23:00 PDT 2009
Author: sgupta
Date: Mon Oct 26 13:22:59 2009
New Revision: 85134
URL: http://llvm.org/viewvc/llvm-project?rev=85134&view=rev
Log:
Make PIC16 overlay a loadable pass.
Modified:
llvm/trunk/lib/Target/PIC16/PIC16Passes/Makefile
llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
Modified: llvm/trunk/lib/Target/PIC16/PIC16Passes/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16Passes/Makefile?rev=85134&r1=85133&r2=85134&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16Passes/Makefile (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16Passes/Makefile Mon Oct 26 13:22:59 2009
@@ -8,9 +8,8 @@
##===----------------------------------------------------------------------===##
LEVEL = ../../../..
TARGET = PIC16
-LIBRARYNAME = LLVMpic16passes
-BUILD_ARCHIVE = 1
-
+LIBRARYNAME = PIC16Passes
+LOADABLE_MODULE = 1
include $(LEVEL)/Makefile.common
Modified: llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp?rev=85134&r1=85133&r2=85134&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp (original)
+++ llvm/trunk/lib/Target/PIC16/PIC16Passes/PIC16Overlay.cpp Mon Oct 26 13:22:59 2009
@@ -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 {
More information about the llvm-commits
mailing list