remove the last vestiges of llvm::GetConstantStringInfo, in CodeGen.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2012-01-31 05:09:17 +00:00
parent 2cf07eccff
commit f0e1053a63
3 changed files with 6 additions and 19 deletions

View File

@ -1603,16 +1603,6 @@ Value *llvm::GetPointerBaseWithConstantOffset(Value *Ptr, int64_t &Offset,
}
// 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.