aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-12 19:37:26 +0000
committerChris Lattner <sabre@nondot.org>2004-01-12 19:37:26 +0000
commit7e208904ae8eeef888c3a6eecd38daa779ca36c9 (patch)
treee8cfab716266ecfec8d2ac4413be0597dd364087
parent7c4049c5a032734c0e1fe60ee298087cc0ca4361 (diff)
The getShift method is no obsolete
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10797 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Constants.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 2b8ea6ab3f..36969d9fab 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -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,