diff options
author | Amjad Aboud <amjad.aboud@intel.com> | 2016-04-21 16:58:49 +0000 |
---|---|---|
committer | Amjad Aboud <amjad.aboud@intel.com> | 2016-04-21 16:58:49 +0000 |
commit | a5ba99140c7865793a0e1154f9a7bb9a2f791851 (patch) | |
tree | 91ffc04d6e5cb6d06c3aa93c57c24da1c06980c4 /llvm/include | |
parent | 9d26599078d956e5c4fbb9db51b54c4752106133 (diff) | |
download | bcm5719-llvm-a5ba99140c7865793a0e1154f9a7bb9a2f791851.tar.gz bcm5719-llvm-a5ba99140c7865793a0e1154f9a7bb9a2f791851.zip |
Fixed Dwarf debug info emission to skip DILexicalBlockFile entries.
Before this fix, DILexicalBlockFile entries were skipped only in some cases and were not in other cases.
Differential Revision: http://reviews.llvm.org/D18724
llvm-svn: 267004
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/IR/DebugInfoMetadata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h index 355f892d4ec..ab8192f424e 100644 --- a/llvm/include/llvm/IR/DebugInfoMetadata.h +++ b/llvm/include/llvm/IR/DebugInfoMetadata.h @@ -1163,6 +1163,12 @@ public: /// chain. DISubprogram *getSubprogram() const; + /// Get the first non DILexicalBlockFile scope of this scope. + /// + /// Return this if it's not a \a DILexicalBlockFIle; otherwise, look up the + /// scope chain. + DILocalScope *getNonLexicalBlockFileScope() const; + static bool classof(const Metadata *MD) { return MD->getMetadataID() == DISubprogramKind || MD->getMetadataID() == DILexicalBlockKind || |