[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp
Reid Spencer
reid at x10sys.com
Fri Oct 20 00:08:35 PDT 2006
Changes in directory llvm/tools/bugpoint:
ExtractFunction.cpp updated: 1.52 -> 1.53
---
Log message:
For PR950: http://llvm.org/PR950 :
This patch implements the first increment for the Signless Types feature.
All changes pertain to removing the ConstantSInt and ConstantUInt classes
in favor of just using ConstantInt.
---
Diffs of the changes: (+3 -3)
ExtractFunction.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.52 llvm/tools/bugpoint/ExtractFunction.cpp:1.53
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.52 Tue Aug 29 18:38:20 2006
+++ llvm/tools/bugpoint/ExtractFunction.cpp Fri Oct 20 02:07:24 2006
@@ -181,7 +181,7 @@
std::vector<Constant*> ArrayElts;
for (unsigned i = 0, e = TorList.size(); i != e; ++i) {
std::vector<Constant*> Elts;
- Elts.push_back(ConstantSInt::get(Type::IntTy, TorList[i].second));
+ Elts.push_back(ConstantInt::get(Type::IntTy, TorList[i].second));
Elts.push_back(TorList[i].first);
ArrayElts.push_back(ConstantStruct::get(Elts));
}
@@ -210,8 +210,8 @@
if (CS->getOperand(1)->isNullValue())
break; // Found a null terminator, stop here.
- ConstantSInt *CI = dyn_cast<ConstantSInt>(CS->getOperand(0));
- int Priority = CI ? CI->getValue() : 0;
+ ConstantInt *CI = dyn_cast<ConstantInt>(CS->getOperand(0));
+ int Priority = CI ? CI->getSExtValue() : 0;
Constant *FP = CS->getOperand(1);
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(FP))
More information about the llvm-commits
mailing list