summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-04-13 22:52:11 +0000
committerRui Ueyama <ruiu@google.com>2015-04-13 22:52:11 +0000
commit4bd8ece689d496a2280263e3a2bb15d6b8f1a408 (patch)
treead501682070754feaff57109ab5471f743e49d32 /llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
parentd8d6046e692bb2843f076b1f96dbf2543bbb03e3 (diff)
downloadbcm5719-llvm-4bd8ece689d496a2280263e3a2bb15d6b8f1a408.tar.gz
bcm5719-llvm-4bd8ece689d496a2280263e3a2bb15d6b8f1a408.zip
ELF: Move definitions from {Dynamic,ELF}File.h to .cpp files.
DynamicFile and ELFFile are instantiated for four different types, ELF{32,64}{BE,LE}. Because the classes are instantiated in each compilation unit, including the header file makes object files 10MB larger. On Windows, issue of excessive template instantiation is critical, since the regular COFF file supports only up to 65534 sections. (We could use the extended COFF file format, but generating that much COMDAT sections is not a good thing in the first place because it means long compile time and long link time.) I confirmed that this change makes AArch64TargetHandler.cpp.o from 21MB to 8.5MB. It feels still too large, but I think it's a good start. llvm-svn: 234808
Diffstat (limited to 'llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud