aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-07-23 02:00:51 +0000
committerDevang Patel <dpatel@apple.com>2009-07-23 02:00:51 +0000
commit5417dcf1695dc0d3169d3fb69d5481a483c914c6 (patch)
tree05f0d304147132f0a0c1ac6da9be0895790ffa32 /lib/VMCore/LLVMContext.cpp
parentaf884c861164d93eab5f44b0bd86b30fa7297c3c (diff)
downloadexternal_llvm-5417dcf1695dc0d3169d3fb69d5481a483c914c6.zip
external_llvm-5417dcf1695dc0d3169d3fb69d5481a483c914c6.tar.gz
external_llvm-5417dcf1695dc0d3169d3fb69d5481a483c914c6.tar.bz2
MDString
- 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
Diffstat (limited to 'lib/VMCore/LLVMContext.cpp')
-rw-r--r--lib/VMCore/LLVMContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index c88ecba..d0abb2d 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -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