summaryrefslogtreecommitdiff
path: root/lib/Target/PIC16/PIC16ISelDAGToDAG.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2009-12-23 11:19:09 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2009-12-23 11:19:09 +0000
commit76d2f9a4dbcae8fee233787d49e9a586e18c3f60 (patch)
tree12bb35afe992eafc4fd26a9b9255d778af5fbbee /lib/Target/PIC16/PIC16ISelDAGToDAG.h
parent7fb0ead09156200e5174ae2cd8ee2dc39104ae73 (diff)
downloadllvm-76d2f9a4dbcae8fee233787d49e9a586e18c3f60.tar.gz
llvm-76d2f9a4dbcae8fee233787d49e9a586e18c3f60.tar.bz2
llvm-76d2f9a4dbcae8fee233787d49e9a586e18c3f60.tar.xz
Reapply 91904.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16/PIC16ISelDAGToDAG.h')
-rw-r--r--lib/Target/PIC16/PIC16ISelDAGToDAG.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Target/PIC16/PIC16ISelDAGToDAG.h b/lib/Target/PIC16/PIC16ISelDAGToDAG.h
index 3a2f6b47b3..d9172f2b36 100644
--- a/lib/Target/PIC16/PIC16ISelDAGToDAG.h
+++ b/lib/Target/PIC16/PIC16ISelDAGToDAG.h
@@ -36,7 +36,10 @@ class VISIBILITY_HIDDEN PIC16DAGToDAGISel : public SelectionDAGISel {
public:
explicit PIC16DAGToDAGISel(PIC16TargetMachine &tm) :
SelectionDAGISel(tm),
- TM(tm), PIC16Lowering(*TM.getTargetLowering()) {}
+ TM(tm), PIC16Lowering(*TM.getTargetLowering()) {
+ // Keep PIC16 specific DAGISel to use during the lowering
+ PIC16Lowering.ISel = this;
+ }
// Pass Name
virtual const char *getPassName() const {