summaryrefslogtreecommitdiff
path: root/include/llvm/Constant.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r--include/llvm/Constant.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index 3b3089748e..a42c7d4371 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -17,6 +17,8 @@
#include "llvm/User.h"
namespace llvm {
+ class APInt;
+
template<typename T> class SmallVectorImpl;
class LLVMContext;
@@ -142,6 +144,10 @@ public:
/// its bits set to true.
/// @brief Get the all ones value
static Constant* getAllOnesValue(const Type* Ty);
+
+ /// getIntegerValue - Return the value for an integer or pointer constant,
+ /// or a vector thereof, with the given scalar value.
+ static Constant* getIntegerValue(const Type* Ty, const APInt &V);
};
} // End llvm namespace