The getShift method is no obsolete
authorChris Lattner <sabre@nondot.org>
Mon, 12 Jan 2004 19:37:26 +0000 (19:37 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Jan 2004 19:37:26 +0000 (19:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10797 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Constants.h

index 2b8ea6ab3f06f6bf76c802cb565f674391b3450b..36969d9fabe305dff33aa35b7da7a681ddf8248b 100644 (file)
@@ -492,18 +492,13 @@ public:
   ///
   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...
   ///
   static Constant *getGetElementPtr(Constant *C,