[DebugInfo] Remove dead forwarding accessors. NFC.
llvm-svn: 250405
This commit is contained in:
parent
58f413c518
commit
d474a62032
|
|
@ -1413,13 +1413,6 @@ public:
|
||||||
|
|
||||||
Metadata *getRawScope() const { return getOperand(1); }
|
Metadata *getRawScope() const { return getOperand(1); }
|
||||||
|
|
||||||
/// \brief Forwarding accessors to LexicalBlock.
|
|
||||||
///
|
|
||||||
/// TODO: Remove these and update code to use \a DILexicalBlock directly.
|
|
||||||
/// @{
|
|
||||||
inline unsigned getLine() const;
|
|
||||||
inline unsigned getColumn() const;
|
|
||||||
/// @}
|
|
||||||
static bool classof(const Metadata *MD) {
|
static bool classof(const Metadata *MD) {
|
||||||
return MD->getMetadataID() == DILexicalBlockKind ||
|
return MD->getMetadataID() == DILexicalBlockKind ||
|
||||||
MD->getMetadataID() == DILexicalBlockFileKind;
|
MD->getMetadataID() == DILexicalBlockFileKind;
|
||||||
|
|
@ -1477,18 +1470,6 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
unsigned DILexicalBlockBase::getLine() const {
|
|
||||||
if (auto *N = dyn_cast<DILexicalBlock>(this))
|
|
||||||
return N->getLine();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned DILexicalBlockBase::getColumn() const {
|
|
||||||
if (auto *N = dyn_cast<DILexicalBlock>(this))
|
|
||||||
return N->getColumn();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
class DILexicalBlockFile : public DILexicalBlockBase {
|
class DILexicalBlockFile : public DILexicalBlockBase {
|
||||||
friend class LLVMContextImpl;
|
friend class LLVMContextImpl;
|
||||||
friend class MDNode;
|
friend class MDNode;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue