diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:27:37 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-06 22:27:37 +0000 |
commit | 5bf3cdc566dfd2a653aa1342a850a7bd3d451677 (patch) | |
tree | f470382d6205f993c615d207516afb7407c13522 /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp | |
parent | 4e25cfa167ea1768e6866ae8040b4afc4ac87719 (diff) | |
download | llvm-5bf3cdc566dfd2a653aa1342a850a7bd3d451677.zip llvm-5bf3cdc566dfd2a653aa1342a850a7bd3d451677.tar.gz llvm-5bf3cdc566dfd2a653aa1342a850a7bd3d451677.tar.bz2 |
DebugInfo: Reimplement DIRef<>::resolve() using TypedDebugNodeRef<>
Gut `DIRef<>::resolve()`, reimplementing it using
`TypedDebugNodeRef<>::resolve()`. Use three separate functions rather
than some sort of type traits, since the latter (i.e., mapping `DIScope`
=> `MDScope`) seems heavy-handed. I don't expect `DIRef<>` to last much
longer in tree anyway.
As a drive-by fix, make `TypedDebugNodeRef<>::resolve()` do the right
thing with `nullptr`.
llvm-svn: 234248
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions