Go to file
Duncan P. N. Exon Smith 7735b48a8b AsmPrinter: Change DIEValue to be stored by value
Change `DIEValue` to be stored/passed/etc. by value, instead of
reference.  It's now a discriminated union, with a `Val` field storing
the actual type.  The classes that used to inherit from `DIEValue` no
longer do.  There are two categories of these:

  - Small values fit in a single pointer and are stored by value.
  - Large values require auxiliary storage, and are stored by reference.

The only non-mechanical change is to tools/dsymutil/DwarfLinker.cpp.  It
was relying on `DIEInteger`s being passed around by reference, so I
replaced that assumption with a `PatchLocation` type that stores a safe
reference to where the `DIEInteger` lives instead.

This commit causes a temporary regression in memory usage, since I've
left merging `DIEAbbrevData` into `DIEValue` for a follow-up commit.  I
measured an increase from 845 MB to 879 MB, around 3.9%.  The follow-up
drops it lower than the starting point, and I've only recently brought
the memory this low anyway, so I'm committing these changes separately
to keep them incremental.  (I also considered swapping the commits, but
the other one first would cause a lot more code churn.)

(I'm looking at `llc` memory usage on `verify-uselistorder.lto.opt.bc`;
see r236629 for details.)

llvm-svn: 238349
2015-05-27 19:22:50 +00:00
clang It appears these exports are needed, as wmmintrin.h includes them. 2015-05-27 18:26:41 +00:00
clang-tools-extra [clang-tidy] Renamed misc-noexcept-move-ctors to misc-noexcept-move-constructor 2015-05-27 14:24:11 +00:00
compiler-rt Test case for PR 23499. 2015-05-27 17:03:26 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Add N4259 to the list of papers from Lenexa. Update links to point at public repos. 2015-05-27 17:19:40 +00:00
libcxxabi Make sure !empty() before calling String::front(). 2015-05-26 23:14:26 +00:00
libunwind Code cleanup: Remove duplicated line. 2015-05-17 13:49:18 +00:00
lld [Mips] Move member function definitions to cpp files 2015-05-27 11:56:15 +00:00
lldb XTIMEOUT another test timing out on the FreeBSD buildbot 2015-05-27 19:11:29 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm AsmPrinter: Change DIEValue to be stored by value 2015-05-27 19:22:50 +00:00
openmp Allow gcc 5.x to compile library. 2015-05-27 18:57:33 +00:00
polly Drop const in front of iterator 2015-05-27 06:51:34 +00:00