- Rename member function size(). New name is length().
- Store string beginning and length. Earlier it used to store string end.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76841 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel
2009-07-23 02:00:51 +00:00
parent 3091719b90
commit 2f9c3b002d
10 changed files with 30 additions and 28 deletions
+3 -3
View File
@@ -551,12 +551,12 @@ MDNode* LLVMContext::getMDNode(Value* const* Vals, unsigned NumVals) {
}
// MDString accessors
MDString* LLVMContext::getMDString(const char *StrBegin, const char *StrEnd) {
return pImpl->getMDString(StrBegin, StrEnd);
MDString* LLVMContext::getMDString(const char *StrBegin, unsigned StrLength) {
return pImpl->getMDString(StrBegin, StrLength);
}
MDString* LLVMContext::getMDString(const std::string &Str) {
return getMDString(Str.data(), Str.data()+Str.size());
return getMDString(Str.data(), Str.size());
}
// FunctionType accessors