aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/FileOutputBuffer.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2014-06-13 16:12:08 +0000
committerTobias Grosser <tobias@grosser.es>2014-06-13 16:12:08 +0000
commit9190e0dd622ce39d4fb57c70f913e1f8b484b0b7 (patch)
treea8671b504b5212ab8ff867ae8336c5b1a7d7f1e5 /llvm/lib/Support/FileOutputBuffer.cpp
parentb34440f9c4e9ff2feeaf8beff3f16140dbb702ed (diff)
downloadllvm-9190e0dd622ce39d4fb57c70f913e1f8b484b0b7.zip
llvm-9190e0dd622ce39d4fb57c70f913e1f8b484b0b7.tar.gz
llvm-9190e0dd622ce39d4fb57c70f913e1f8b484b0b7.tar.bz2
opt: Initialize asm printers
Without initializing the assembly printers a shared library build of opt is linked with these libraries whereas for a static build these libraries are dead code eliminated. This is unfortunate for plugins in case they want to use them, as they neither can rely on opt to provide this functionality nor can they link the printers in themselves as this breaks with a shared object build of opt. This patch calls InitializeAllAsmPrinters() from opt, which increases the static binary size from 50MB -> 52MB on my system (all backends compiled) and causes no measurable increase in the time needed to run 'make check'. llvm-svn: 210914
Diffstat (limited to 'llvm/lib/Support/FileOutputBuffer.cpp')
0 files changed, 0 insertions, 0 deletions