diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-15 13:56:02 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-10-15 13:56:02 +0000 |
commit | d474a62032c375f585c05cac4fbe6f54d553716c (patch) | |
tree | 00863ed48ac5284b12b8c5fba208d7a82095b662 | |
parent | 58f413c5181c118a9a2aaf399992d01110b78a63 (diff) | |
download | bcm5719-llvm-d474a62032c375f585c05cac4fbe6f54d553716c.tar.gz bcm5719-llvm-d474a62032c375f585c05cac4fbe6f54d553716c.zip |
[DebugInfo] Remove dead forwarding accessors. NFC.
llvm-svn: 250405
-rw-r--r-- | llvm/include/llvm/IR/DebugInfoMetadata.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h index 27b92eea405..6c0d0d539d9 100644 --- a/llvm/include/llvm/IR/DebugInfoMetadata.h +++ b/llvm/include/llvm/IR/DebugInfoMetadata.h @@ -1413,13 +1413,6 @@ public: 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) { return MD->getMetadataID() == DILexicalBlockKind || 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 { friend class LLVMContextImpl; friend class MDNode; |