[llvm-commits] CVS: llvm/include/llvm/Constants.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 12 13:38:00 PST 2004
Changes in directory llvm/include/llvm:
Constants.h updated: 1.36 -> 1.37
---
Log message:
The getShift method is no obsolete
---
Diffs of the changes: (+2 -7)
Index: llvm/include/llvm/Constants.h
diff -u llvm/include/llvm/Constants.h:1.36 llvm/include/llvm/Constants.h:1.37
--- llvm/include/llvm/Constants.h:1.36 Mon Nov 17 13:47:15 2003
+++ llvm/include/llvm/Constants.h Mon Jan 12 13:37:26 2004
@@ -492,16 +492,11 @@
///
static Constant *getCast(Constant *C, const Type *Ty);
- /// Binary constant expr - Use with binary operators...
+ /// ConstantExpr::get - Return a binary or shift operator constant expression,
+ /// folding if possible.
///
static Constant *get(unsigned Opcode, Constant *C1, Constant *C2) {
return getTy(C1->getType(), Opcode, C1, C2);
- }
-
- /// getShift - Return a shift left or shift right constant expr
- ///
- static Constant *getShift(unsigned Opcode, Constant *C1, Constant *C2) {
- return getShiftTy(C1->getType(), Opcode, C1, C2);
}
/// Getelementptr form...
More information about the llvm-commits
mailing list