Bitcode: Use unsigned char to record MDStrings
[oota-llvm.git] / include / llvm / IR / Metadata.h
index 5e1b294fa1ffc3b8f7d3138f70ff62eee479fe26..fdcff4d6237413b16edb4707327416b4be456c95 100644 (file)
@@ -459,6 +459,9 @@ public:
   /// \brief Pointer to one byte past the end of the string.
   iterator end() const { return getString().end(); }
 
+  const unsigned char *bytes_begin() const { return getString().bytes_begin(); }
+  const unsigned char *bytes_end() const { return getString().bytes_end(); }
+
   /// \brief Methods for support type inquiry through isa, cast, and dyn_cast.
   static bool classof(const Metadata *MD) {
     return MD->getMetadataID() == MDStringKind;