Skip to content

Commit f1b2506

Browse files
authored
Update Constants.h
1 parent 59d76ea commit f1b2506

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/include/llvm/IR/Constants.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,10 @@ class ConstantDataSequential : public ConstantData {
644644
/// and does not contains any other null bytes.
645645
bool isCString() const;
646646

647+
/// This method returns true if the array is unicode string, ends with a null
648+
/// byte,
649+
bool isUnicodeString() const;
650+
647651
/// If this array is isString(), then this method returns the array as a
648652
/// StringRef. Otherwise, it asserts out.
649653
StringRef getAsString() const {

0 commit comments

Comments
 (0)