diff options
Diffstat (limited to 'lib/VMCore/Value.cpp')
-rw-r--r-- | lib/VMCore/Value.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index d020c399fd..9d6af5a334 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -165,13 +165,6 @@ unsigned Value::getNameLen() const { return Name ? Name->getKeyLength() : 0; } -/// isName - Return true if this value has the name specified by the provided -/// nul terminated string. -bool Value::isName(const char *N) const { - unsigned InLen = strlen(N); - return InLen == getNameLen() && memcmp(getNameStart(), N, InLen) == 0; -} - std::string Value::getNameStr() const { if (Name == 0) return ""; @@ -179,11 +172,6 @@ std::string Value::getNameStr() const { Name->getKeyData()+Name->getKeyLength()); } -StringRef Value::getNameRef() const { - if (Name == 0) return StringRef(); - return StringRef(Name->getKeyData(), Name->getKeyLength()); -} - void Value::setName(const Twine &Name) { SmallString<32> NameData; Name.toVector(NameData); |