diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-06 14:34:43 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-06 14:34:43 +0000 |
commit | 9c5701ffcff34b320da4bfef7beccda869bdfd58 (patch) | |
tree | a645202bd1b2808287d82657b34b37a58f53104f /llvm/lib/MC/MCObjectWriter.cpp | |
parent | 6eeeac7b2a13a0dead681bd87aca08343fc2731c (diff) | |
download | llvm-9c5701ffcff34b320da4bfef7beccda869bdfd58.zip llvm-9c5701ffcff34b320da4bfef7beccda869bdfd58.tar.gz llvm-9c5701ffcff34b320da4bfef7beccda869bdfd58.tar.bz2 |
Don't use -ffunction-sections -fdata-sections on debug builds.
Unfortunately, on ELF there is not used attribute on the .o files,
so there is no easy way to keep the dump function alive.
If we are not gcing, we may as well produce non gcable files and
avoid the cost.
Linking a debug clang now takes 18.856225992 seconds, before it
took 21.206897447.
I will try avoiding --gc-sections -O3 on a followup patch.
llvm-svn: 234159
Diffstat (limited to 'llvm/lib/MC/MCObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions