}
-// FIXME: Remove this.
-bool llvm::GetConstantStringInfo(const Value *V, std::string &Str,
- uint64_t Offset) {
- StringRef Tmp;
- if (!getConstantStringInfo(V, Tmp, Offset))
- return false;
- Str = Tmp.str();
- return true;
-}
-
/// getConstantStringInfo - This function computes the length of a
/// null-terminated C string pointed to by V. If successful, it returns true
/// and returns the string in Str. If unsuccessful, it returns false.