diff options
| author | Eric Christopher <echristo@gmail.com> | 2014-10-09 01:35:27 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2014-10-09 01:35:27 +0000 |
| commit | 85de8f98a925afd91098d5727eb0f89b04c38441 (patch) | |
| tree | 7b3721fa3b382c0b00f38d48a7de570f70e72a19 /llvm/lib/CodeGen/SelectionDAG | |
| parent | ac33cc9ce71211b49532debf491f35d6b4c14bce (diff) | |
| download | bcm5719-llvm-85de8f98a925afd91098d5727eb0f89b04c38441.tar.gz bcm5719-llvm-85de8f98a925afd91098d5727eb0f89b04c38441.zip | |
Use the subtarget on the dag to get TargetFrameLowering rather
than off the target machine.
llvm-svn: 219378
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 95825e6571e..f901823f1eb 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -1627,7 +1627,7 @@ void SelectionDAGLegalize::ExpandDYNAMIC_STACKALLOC(SDNode* Node, Chain = SP.getValue(1); unsigned Align = cast<ConstantSDNode>(Tmp3)->getZExtValue(); unsigned StackAlign = - TM.getSubtargetImpl()->getFrameLowering()->getStackAlignment(); + DAG.getSubtarget().getFrameLowering()->getStackAlignment(); Tmp1 = DAG.getNode(ISD::SUB, dl, VT, SP, Size); // Value if (Align > StackAlign) Tmp1 = DAG.getNode(ISD::AND, dl, VT, Tmp1, diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 8f3da6f2c32..733a72887f2 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3441,7 +3441,7 @@ void SelectionDAGBuilder::visitAlloca(const AllocaInst &I) { // the stack alignment, ignore it. If the size is greater than or equal to // the stack alignment, we note this in the DYNAMIC_STACKALLOC node. unsigned StackAlign = - TM.getSubtargetImpl()->getFrameLowering()->getStackAlignment(); + DAG.getSubtarget().getFrameLowering()->getStackAlignment(); if (Align <= StackAlign) Align = 0; |

