DebugInfo: Remove dead DIRef::getName()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234186 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2015-04-06 17:52:46 +00:00
parent 2e8b39e549
commit 3a69ccdae1

View File

@ -291,7 +291,6 @@ template <typename T> class DIRef {
public:
T resolve(const DITypeIdentifierMap &Map) const;
StringRef getName() const;
operator Metadata *() const { return const_cast<Metadata *>(Val); }
static DIRef get(const Metadata *MD) { return DIRef(MD); }
@ -314,17 +313,6 @@ T DIRef<T>::resolve(const DITypeIdentifierMap &Map) const {
return T(Iter->second);
}
template <typename T> StringRef DIRef<T>::getName() const {
if (!Val)
return StringRef();
if (const MDNode *MD = dyn_cast<MDNode>(Val))
return T(MD).getName();
const MDString *MS = cast<MDString>(Val);
return MS->getString();
}
/// \brief Handle fields that are references to DIDescriptors.
template <>
DIDescriptorRef DIDescriptor::getFieldAs<DIDescriptorRef>(unsigned Elt) const;