diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-23 20:10:47 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-09-23 20:10:47 +0000 |
| commit | 65499b9040e42942c93dac1c2110948dc7565d8e (patch) | |
| tree | d48d77857a83854b8454ed5a3412fcd44d2b3c8c /clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp | |
| parent | 0d26de39227ecf459cd0d617e9f98edfbba39e3e (diff) | |
| download | bcm5719-llvm-65499b9040e42942c93dac1c2110948dc7565d8e.tar.gz bcm5719-llvm-65499b9040e42942c93dac1c2110948dc7565d8e.zip | |
Avoid counting sections twice.
We were counting the size of the bss section holding common symbols twice:
Dot += CurOutSec->getSize();
flush();
The new code is also simpler as now flush is the only function that
inserts in AlreadyOutputOS, which makes sense since the set hold fully
output sections.
llvm-svn: 282285
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend/ModelConsumer.cpp')
0 files changed, 0 insertions, 0 deletions

