aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2023-08-08 18:16:49 -0700
committerGreg Clayton <gclayton@fb.com>2023-08-09 00:34:11 -0700
commit27d6161b64369557bedc1bf1580a48e64d16c19b (patch)
treebfff6794fab65c94319bd439937063f4b99edb2a /clang/lib/Frontend/CompilerInvocation.cpp
parentb555912e705924630de1f65b77d0139a20b5338b (diff)
downloadllvm-27d6161b64369557bedc1bf1580a48e64d16c19b.zip
llvm-27d6161b64369557bedc1bf1580a48e64d16c19b.tar.gz
llvm-27d6161b64369557bedc1bf1580a48e64d16c19b.tar.bz2
Improve llvm-gsymutil performance in quiet mode.
The GSYM code alwasy logging to streams even in quiet mode. When in quiet mode we would use the "nulls()" stream to avoid logging to the terminal, but this still caused logging functions to be called on DWARFDie objects and other messages which were quite expensive and not needed if we weren't logging anything. This patch switches some logs in performant areas to be "raw_ostream *" values and if the ostream pointer is NULL, then we don't call the expensive logging functions on DWARFDie and other objects which will improve performance. Differential Revision: https://reviews.llvm.org/D157466
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions