diff options
| author | Fedor Sergeev <fedor.sergeev@azul.com> | 2019-06-27 23:41:03 +0000 |
|---|---|---|
| committer | Fedor Sergeev <fedor.sergeev@azul.com> | 2019-06-27 23:41:03 +0000 |
| commit | 92e625c2233c98a9ffa6d7d5cc10462957425054 (patch) | |
| tree | 6ce54c792b74472d825f50d9da479be6e336c388 /lldb/source/Plugins/DynamicLoader | |
| parent | ddc2804e1a5451ee8f24ce93aaf98dbce29b5961 (diff) | |
| download | bcm5719-llvm-92e625c2233c98a9ffa6d7d5cc10462957425054.tar.gz bcm5719-llvm-92e625c2233c98a9ffa6d7d5cc10462957425054.zip | |
[InlineCost] make InlineCost assignable
Summary:
Current InlineCost is not assignable because of const members Cost and Threshold.
I dont see practical benefits from having them const (access to these members is
private and internal interactions are rather simple). On other hand that makes
it hard to use as a member in some other data structure where assignability is necessary.
I'm going to use InlineCost in a downstream inliner that maintains a complex queue
of candidate call-sites and thus keeping and recalculating InlineCost is necessary.
This patch just removes 'const' from both members, making InlineCost assignable.
Reviewers: eraman, greened, chandlerc, yrouban, apilipenko
Reviewed By: apilipenko
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63823
llvm-svn: 364612
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader')
0 files changed, 0 insertions, 0 deletions

