diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-16 22:11:26 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-16 22:11:26 +0000 |
commit | aad3fb7362aff151e97ad457005ea3f2872fe868 (patch) | |
tree | 78ad3b3efe4d503fc275adfe42a0102d52a78587 /include/llvm/Constants.h | |
parent | 24cd3c4711333ca1e07cbdb34475bccfeb762bb6 (diff) | |
download | llvm-aad3fb7362aff151e97ad457005ea3f2872fe868.tar.gz llvm-aad3fb7362aff151e97ad457005ea3f2872fe868.tar.bz2 llvm-aad3fb7362aff151e97ad457005ea3f2872fe868.tar.xz |
Privatize the MDString uniquing table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 199355baf4..487dd6732a 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -745,17 +745,13 @@ class MDString : public Constant { MDString(const char *begin, const char *end); const char *StrBegin, *StrEnd; + friend class LLVMContextImpl; protected: // allocate space for exactly zero operands void *operator new(size_t s) { return User::operator new(s, 0); } 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. /// intptr_t size() const { return StrEnd - StrBegin; } |