HomePhabricator

[DWARFExpression] Remove ctor that takes just a compile unit.

Description

[DWARFExpression] Remove ctor that takes just a compile unit.

Like many of our DWARF classes, the DWARFExpression can be initialized
in several ways. One such way was through a constructor that takes just
the compile unit. This constructor is used to initialize both empty
DWARFExpressions, and DWARFExpression that will be populated later.

To make the distinction more clear, I changed the constructor to a
default constructor and updated its call sites. Where the
DWARFExpression was being populated later, I replaced that with a call
to the copy assignment constructor.

Differential revision: https://reviews.llvm.org/D62425

Details

Committed
JDevlieghereMay 28 2019, 10:34 AM
Differential Revision
D62425: [DWARFExpression] Remove ctor that takes just a compile unit.
Branches
Unknown
Tags
Unknown