diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-10-11 04:29:42 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-10-11 04:29:42 +0000 |
commit | 82c3d8f81ab20dc7571f29ffc46a5bb1b7ed8323 (patch) | |
tree | 34b670ad91e6ea572542ba079d0862ee4523e82a /lib/Target/Alpha/AlphaISelDAGToDAG.cpp | |
parent | 78feeb04603ded015be718538ec53fd09b84dede (diff) | |
download | external_llvm-82c3d8f81ab20dc7571f29ffc46a5bb1b7ed8323.zip external_llvm-82c3d8f81ab20dc7571f29ffc46a5bb1b7ed8323.tar.gz external_llvm-82c3d8f81ab20dc7571f29ffc46a5bb1b7ed8323.tar.bz2 |
Jimptables working again on alpha.
As a bonus, use the GOT node instead of the AlphaISD::GOT for internal stuff.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index da9be76..ed66592 100644 --- a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -99,7 +99,8 @@ namespace { public: AlphaDAGToDAGISel(TargetMachine &TM) - : SelectionDAGISel(AlphaLowering), AlphaLowering(TM) + : SelectionDAGISel(AlphaLowering), + AlphaLowering(*(AlphaTargetLowering*)(TM.getTargetLowering())) {} /// getI64Imm - Return a target constant with the specified value, of type @@ -201,7 +202,7 @@ SDNode *AlphaDAGToDAGISel::Select(SDOperand Op) { CurDAG->getTargetFrameIndex(FI, MVT::i32), getI64Imm(0)); } - case AlphaISD::GlobalBaseReg: { + case ISD::GLOBAL_OFFSET_TABLE: { SDOperand Result = getGlobalBaseReg(); ReplaceUses(Op, Result); return NULL; |