mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 22:04:55 +00:00
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:
parent
2e8b39e549
commit
3a69ccdae1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user