Changes in directory llvm/include/llvm:
Constants.h updated: 1.91 -> 1.92 --- Log message: Add isCString() - returns true if a ConstantArray is a CString. --- Diffs of the changes: (+5 -0) Constants.h | 5 +++++ 1 files changed, 5 insertions(+) Index: llvm/include/llvm/Constants.h diff -u llvm/include/llvm/Constants.h:1.91 llvm/include/llvm/Constants.h:1.92 --- llvm/include/llvm/Constants.h:1.91 Thu Oct 26 01:15:43 2006 +++ llvm/include/llvm/Constants.h Thu Oct 26 14:13:30 2006 @@ -334,6 +334,11 @@ /// ubyte, and if the elements of the array are all ConstantInt's. bool isString() const; + /// isCString - This method returns true if the array is a string (see + /// isString) and it ends in a null byte \0 and does not contains any other + /// null bytes except its terminator. + bool isCString() const; + /// getAsString - If this array is isString(), then this method converts the /// array to an std::string and returns it. Otherwise, it asserts out. /// _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits