diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:07 +0000 | 
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-31 17:39:07 +0000 | 
| commit | 23a204d91b9a6febe11e54cab7a940d8a73e4612 (patch) | |
| tree | be3eb9d190e33f3a69a17f8fc01275e4a464432e /llvm/lib/CodeGen/SelectionDAG | |
| parent | c10132aa79fd7fed65b86288fa92abb172ce83d2 (diff) | |
| download | bcm5719-llvm-23a204d91b9a6febe11e54cab7a940d8a73e4612.tar.gz bcm5719-llvm-23a204d91b9a6febe11e54cab7a940d8a73e4612.zip | |
Move getTrue() and getFalse() to 2.5-like APIs.
llvm-svn: 77685
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 0eda58ade4b..43761e19064 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp @@ -1149,7 +1149,7 @@ SelectionDAGLowering::EmitBranchForMergedCondition(Value *Cond,    }    // Create a CaseBlock record representing this branch. -  CaseBlock CB(ISD::SETEQ, Cond, DAG.getContext()->getTrue(), +  CaseBlock CB(ISD::SETEQ, Cond, ConstantInt::getTrue(*DAG.getContext()),                 NULL, TBB, FBB, CurBB);    SwitchCases.push_back(CB);  } @@ -1304,7 +1304,7 @@ void SelectionDAGLowering::visitBr(BranchInst &I) {    }    // Create a CaseBlock record representing this branch. -  CaseBlock CB(ISD::SETEQ, CondVal, DAG.getContext()->getTrue(), +  CaseBlock CB(ISD::SETEQ, CondVal, ConstantInt::getTrue(*DAG.getContext()),                 NULL, Succ0MBB, Succ1MBB, CurMBB);    // Use visitSwitchCase to actually insert the fast branch sequence for this    // cond branch. @@ -1322,10 +1322,10 @@ void SelectionDAGLowering::visitSwitchCase(CaseBlock &CB) {    if (CB.CmpMHS == NULL) {      // Fold "(X == true)" to X and "(X == false)" to !X to      // handle common cases produced by branch lowering. -    if (CB.CmpRHS == DAG.getContext()->getTrue() && +    if (CB.CmpRHS == ConstantInt::getTrue(*DAG.getContext()) &&          CB.CC == ISD::SETEQ)        Cond = CondLHS; -    else if (CB.CmpRHS == DAG.getContext()->getFalse() && +    else if (CB.CmpRHS == ConstantInt::getFalse(*DAG.getContext()) &&               CB.CC == ISD::SETEQ) {        SDValue True = DAG.getConstant(1, CondLHS.getValueType());        Cond = DAG.getNode(ISD::XOR, dl, CondLHS.getValueType(), CondLHS, True); | 

