diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:07:46 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:07:46 +0000 |
commit | 6d0b3704b3fb627971e8c88291b382892082fead (patch) | |
tree | c9cfe0842a94c3214ba934b10e4c4ecaaf7ce3e8 /llvm/lib/IR/DebugInfo.cpp | |
parent | ee55fac1d44d5ad114cab57b174e16d5eadb43ba (diff) | |
download | bcm5719-llvm-6d0b3704b3fb627971e8c88291b382892082fead.tar.gz bcm5719-llvm-6d0b3704b3fb627971e8c88291b382892082fead.zip |
DebugInfo: Drop confusing forwarding API from DILexicalBlockFile
Remove `DILexicalBlockFile::getScope()` (whose last use was removed from
clang in r234245), which illegally returned a `DILexicalBlock` despite
its scope sometimes being an `MDSubprogram`. Also remove the
`getLineNumber()` and `getColumnNumber()` methods that just forwarded to
`DILexicalBlock`'s versions, since there don't seem to be any callers.
Note that the block of code removed from `DebugInfo.cpp` was actually
dead code, since `isLexicalBlock()` (the previous branch) always returns
true when `isLexicalBlockFile()` returns true.
An earlier (broken and untested) version of this was squashed into
r234222 and reverted in r234225.
llvm-svn: 234246
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 1ad9dcae3ad..8ae2bcb8485 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -498,9 +498,6 @@ void DebugInfoFinder::processScope(DIScope Scope) { if (Scope.isLexicalBlock()) { DILexicalBlock LB(Scope); processScope(LB.getContext()); - } else if (Scope.isLexicalBlockFile()) { - DILexicalBlockFile LBF = DILexicalBlockFile(Scope); - processScope(LBF.getScope()); } else if (Scope.isNameSpace()) { DINameSpace NS(Scope); processScope(NS.getContext()); |