DebugInfo: Drop confusing forwarding API from DILexicalBlockFile
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 22:07:46 +0000 (22:07 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 6 Apr 2015 22:07:46 +0000 (22:07 +0000)
commit6d0b3704b3fb627971e8c88291b382892082fead
treec9cfe0842a94c3214ba934b10e4c4ecaaf7ce3e8
parentee55fac1d44d5ad114cab57b174e16d5eadb43ba
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
llvm/include/llvm/IR/DebugInfo.h
llvm/lib/IR/DebugInfo.cpp