aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/Constants.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 7c0a00506a..d589767508 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -486,6 +486,9 @@ public:
/// Binary constant expr - Use with binary operators...
static Constant *get(unsigned Opcode, Constant *C1, Constant *C2);
+ /// getShift - Return a shift left or shift right constant expr
+ static Constant *getShift(unsigned Opcode, Constant *C1, Constant *C2);
+
/// Getelementptr form...
static Constant *getGetElementPtr(Constant *C,
const std::vector<Constant*> &IdxList);