diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-14 23:09:55 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-14 23:09:55 +0000 |
| commit | b6b2530000366d6982736dd0d0cc3585b01cf37b (patch) | |
| tree | fbc341c4197153ef4908d7b6b75b5b2b57a1b46f /llvm/lib/CodeGen/SelectionDAG | |
| parent | eea582f04f1a8fb0d1b81e45e83e9c116869a502 (diff) | |
| download | bcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.tar.gz bcm5719-llvm-b6b2530000366d6982736dd0d0cc3585b01cf37b.zip | |
Move EVER MORE stuff over to LLVMContext.
llvm-svn: 75703
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 01f3cc7af13..9343b965c42 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -30,6 +30,7 @@ #include "llvm/DerivedTypes.h" #include "llvm/Function.h" #include "llvm/GlobalVariable.h" +#include "llvm/LLVMContext.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Compiler.h" #include "llvm/Support/ErrorHandling.h" @@ -2035,7 +2036,7 @@ SDValue SelectionDAGLegalize::ExpandLegalINT_TO_FP(bool isSigned, case MVT::i64: FF = 0x5F800000ULL; break; // 2^64 (as a float) } if (TLI.isLittleEndian()) FF <<= 32; - Constant *FudgeFactor = ConstantInt::get(Type::Int64Ty, FF); + Constant *FudgeFactor = DAG.getContext()->getConstantInt(Type::Int64Ty, FF); SDValue CPIdx = DAG.getConstantPool(FudgeFactor, TLI.getPointerTy()); unsigned Alignment = cast<ConstantPoolSDNode>(CPIdx)->getAlignment(); |

