diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-05-08 11:43:05 +0000 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-05-08 11:43:05 +0000 |
| commit | 2841e6edc8e079b9c0d9b51746648e63f06316c6 (patch) | |
| tree | adf4bab179f442188d9514cf470d633e9bb76e77 /llvm/lib/Transforms/Vectorize | |
| parent | 2788ad3ee2488112d254affdaae96d410a492895 (diff) | |
| download | bcm5719-llvm-2841e6edc8e079b9c0d9b51746648e63f06316c6.tar.gz bcm5719-llvm-2841e6edc8e079b9c0d9b51746648e63f06316c6.zip | |
[DWARF] Centralize user_id <-> DWARFDIE conversions
Summary:
The logic for translating a user_id into a DWARFDIE was replicated in
several places. This removes that redundancy and settles on a single
implementation in SymbolFileDWARF.
The reason for choosing that instead of DIERef was that we were
always immediately converting the returned DIERef into a DWARFDIE
anyway, which meant that one had to specify the SymbolFileDWARF argument
twice (once to get the DIERef, and once to get the actual DIE). Also,
passing a higher-level object (SymbolFileDWARF) into a lower-level one
(DIERef) seemed like a less intuitive arrangement than doing things the
other way around.
Reviewers: JDevlieghere, clayborg, aprantl
Subscribers: tberghammer, jankratochvil, lldb-commits
Differential Revision: https://reviews.llvm.org/D61648
llvm-svn: 360246
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
0 files changed, 0 insertions, 0 deletions

