aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2022-07-22 13:18:40 -0700
committerGreg Clayton <gclayton@fb.com>2022-07-22 14:04:52 -0700
commitdabe877248b85b34878e75d5510339325ee087d0 (patch)
tree9fd55ec75af263db6a6762f3b0011bf87587a285 /llvm/lib/CodeGen/BasicBlockSections.cpp
parent0bbce7a4c2d2bff622bdadd4323f93f5d90e6d24 (diff)
downloadllvm-dabe877248b85b34878e75d5510339325ee087d0.zip
llvm-dabe877248b85b34878e75d5510339325ee087d0.tar.gz
llvm-dabe877248b85b34878e75d5510339325ee087d0.tar.bz2
Cache the value for absolute path in FileSpec.
Checking if a path is absolute can be expensive and currently the result is not cached in the FileSpec object. This patch adds caching and also code to clear the cache if the file is modified. Differential Revision: https://reviews.llvm.org/D130396
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions