[llvm-commits] [llvm-gcc-4.2] r75498 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Owen Anderson
resistor at mac.com
Mon Jul 13 13:58:19 PDT 2009
Author: resistor
Date: Mon Jul 13 15:58:19 2009
New Revision: 75498
URL: http://llvm.org/viewvc/llvm-project?rev=75498&view=rev
Log:
Update for LLVM API change.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=75498&r1=75497&r2=75498&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Jul 13 15:58:19 2009
@@ -3530,7 +3530,7 @@
const Type *Ty = ConvertType(TREE_TYPE(exp));
Constant *Zero = ConstantInt::get(Ty, 0);
Constant *One = ConstantInt::get(Ty, 1);
- Constant *MinusOne = ConstantInt::getAllOnesValue(Ty);
+ Constant *MinusOne = getGlobalContext().getAllOnesValue(Ty);
Value *LHS = Emit(TREE_OPERAND(exp, 0), 0);
Value *RHS = Emit(TREE_OPERAND(exp, 1), 0);
@@ -3602,7 +3602,7 @@
const Type *Ty = ConvertType(TREE_TYPE(exp));
Constant *Zero = ConstantInt::get(Ty, 0);
Constant *One = ConstantInt::get(Ty, 1);
- Constant *MinusOne = ConstantInt::getAllOnesValue(Ty);
+ Constant *MinusOne = getGlobalContext().getAllOnesValue(Ty);
// In the case of signed arithmetic, we calculate FDiv as follows:
// LHS FDiv RHS = (LHS + Sign(RHS) * Offset) Div RHS - Offset,
@@ -4827,7 +4827,7 @@
// This treats everything as unknown, and is minimally defensible as
// correct, although completely useless.
if (tree_low_cst (ObjSizeTree, 0) < 2)
- Result = ConstantInt::getAllOnesValue(TD.getIntPtrType());
+ Result = getGlobalContext().getAllOnesValue(TD.getIntPtrType());
else
Result = ConstantInt::get(TD.getIntPtrType(), 0);
return true;
More information about the llvm-commits
mailing list