summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-06-24 22:42:39 +0000
committerDevang Patel <dpatel@apple.com>2009-06-24 22:42:39 +0000
commit70535451e0ea1c2fa356720436f98cc000ccf5ec (patch)
treed32a22021a55f5a31178e986add15eb5edfbe640 /include/llvm/Constants.h
parentbd58edf59128d2acb5ae48c76ef8a108fd587db2 (diff)
downloadllvm-70535451e0ea1c2fa356720436f98cc000ccf5ec.tar.gz
llvm-70535451e0ea1c2fa356720436f98cc000ccf5ec.tar.bz2
llvm-70535451e0ea1c2fa356720436f98cc000ccf5ec.tar.xz
Add constructor to create MDString using std::string
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 52fff2020c..da69d25cf6 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -865,6 +865,7 @@ public:
/// get() - Static factory methods - Return objects of the specified value.
///
static MDString *get(const char *StrBegin, const char *StrEnd);
+ static MDString *get(const std::string &Str);
/// size() - The length of this string.
///