aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDisassembler/Disassembler.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-30 23:21:21 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-30 23:21:21 +0000
commit33af7a8f50d6de317aa86849d7593c4cc31bb23e (patch)
tree3be6ffa69d37ba030c81a33c08698ac0c4908719 /llvm/lib/MC/MCDisassembler/Disassembler.cpp
parent9a55539bef62823829a557073deb3c0715ae4f75 (diff)
downloadllvm-33af7a8f50d6de317aa86849d7593c4cc31bb23e.zip
llvm-33af7a8f50d6de317aa86849d7593c4cc31bb23e.tar.gz
llvm-33af7a8f50d6de317aa86849d7593c4cc31bb23e.tar.bz2
LexicalScopes: Use debug info hierarchy pervasively
Pervasively use the types provided by the debug info hierarchy rather than `MDNode` in `LexicalScopes`. I noticed (again, I guess, based on comments in the implementation?) that `DILexicalBlockFile::getScope()` returns something different from `DILexicalBlockFile::getContext()`. I created a local helper for getting the same logic from `MDLexicalBlockFile` called `getScopeOfScope()`. I still don't really understand it, but I've added some FIXMEs and I'll come back to it (I suspect the way we encode these objects isn't really ideal). Note that my previous commit r233610 accidentally changed behaviour in `findLexicalScope()` -- it transitioned from a call to `DILexicalBlockFile::getScope()` to `MDLexicalBlockFile::getScope()` (sounds right, doesn't it?) -- so I've fixed that as a drive-by. No tests failed with my error, so it looks like we're missing some coverage here... when I come back to understand the logic, I'll see if I can add some. Other than the fix to `findLexicalScope()`, no functionality change. llvm-svn: 233640
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions