aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/ELF.cpp
diff options
context:
space:
mode:
authorAlexis Engelke <engelke@in.tum.de>2023-04-11 17:02:03 +0200
committerAlexis Engelke <engelke@in.tum.de>2023-04-12 18:36:02 +0200
commit63a8ca3fe97d36ccd263f7d4ac18a9942b4d0333 (patch)
tree78668722afc328395575703ae60082ef565a06ac /llvm/lib/Object/ELF.cpp
parent6f42b97a29a5872c115029c615f55f33419a4c1f (diff)
downloadllvm-63a8ca3fe97d36ccd263f7d4ac18a9942b4d0333.zip
llvm-63a8ca3fe97d36ccd263f7d4ac18a9942b4d0333.tar.gz
llvm-63a8ca3fe97d36ccd263f7d4ac18a9942b4d0333.tar.bz2
[LegacyPM] Call getPassName only when needed
Even when time tracing is disabled, getPassName is currently still called. This adds an avoidable virtual function call for each pass. Fetching the pass name only when required slightly improves compile-time (particularly when LLVM is built without LTO). Reviewed By: nikic, MaskRay Differential Revision: https://reviews.llvm.org/D148022
Diffstat (limited to 'llvm/lib/Object/ELF.cpp')
0 files changed, 0 insertions, 0 deletions