HomePhabricator

Have DWARFUnit store a *reference* to SymbolFileDWARF

Authored by labath on Jun 14 2019, 6:01 AM.

Description

Have DWARFUnit store a *reference* to SymbolFileDWARF

Previously it was storing a *pointer*, which left open the possibility
of this pointer being null. We never made use of that possibility (it
does not make sense), and most of the code was already assuming that.
However, there were a couple of null-checks scattered around the code.

This patch replaces the reference with a pointer, making the
non-null-ness explicit, and removes the remaining null-checks.

llvm-svn: 363381

Details

Committed
labathJun 14 2019, 6:01 AM
Parents
rG891cdaab7a29: [docs][llvm-dwarfdump] Make the --show-parents and --show-children help text…
Branches
Unknown
Tags
Unknown